Closed bcoles closed 5 years ago
Excellent thanks. Two things:
1) Shouldn't we use pacman -Q
instead of pacman -Qe
? The latter one only lists packages explicitly installed whereas the former all currently installed packages (also all dependencies) is there any particular reason you used pacman -Qe
?
2) Could you please also add echo "$uname" | grep -q -i '\-ARCH' && OS="arch"
to parseUname()
function? Without this parsing packages listing on vanilla Arch does not work when running in default mode linux-exploit-suggester.sh
.
@mzet- No good reason.
I've added detection for -ARCH
to parseUname()
; and replace pacman -Qe
with pacman -Q
.
Rudimentary parsing for pacman package list.
Calling it "support" is a bit of a stretch. I intentionally didn't change the usage text to mention pacman.
Most of the hard-coded
pkg
checks already in LES make use of Debian / Ubuntu package naming convention. As such, they didn't match before this patch. For the most part, they still don't match after this patch.Output (before patch)
Output (after patch)
Sample package list: