We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug /usr/share/lynis/include/tests_kernel line 695 is generating the error
line 695 FOUND_VMLINUZ=$(${LSBINARY} -v ${ROOTDIR}boot/vm[l0-9]* 2> /dev/null | ${GREPBINARY} -v '\-rescue\-' | ${TAILBINARY} -1)
grep: warning: stray \ before -
for the same reason
root@electron# mybug=$(ls -v /boot/vm[l0-9]* | grep -v '\-rescue\-' | tail -1) grep: warning: stray \ before - root@electron# echo $mybug /boot/vmlinuz-6.9.10-200.fc40.x86_64
Version
Expected behavior it works but perhaps something is wrong with this command
The text was updated successfully, but these errors were encountered:
root@electron# FOUND_VMLINUZ=$(ls -v /boot/vm[l0-9]* 2> /dev/null | grep -v '\-rescue-' | tail -1) root@electron# echo $FOUND_VMLINUZ /boot/vmlinuz-6.9.11-200.fc40.x86_64
the solution is that you need grep -v '\-rescue-' and not grep -v '\-rescue\-' the second one has a backslash on the second '-' which is wrong.
grep -v '\-rescue-'
grep -v '\-rescue\-'
Sorry, something went wrong.
No branches or pull requests
Describe the bug
/usr/share/lynis/include/tests_kernel line 695 is generating the error
for the same reason
Version
3.1.1
Expected behavior
it works but perhaps something is wrong with this command
The text was updated successfully, but these errors were encountered: