mirror of https://github.com/CISOfy/lynis.git
When audit target is missing, stop execution
This commit is contained in:
parent
b7641cc16a
commit
a72650252f
|
@ -98,7 +98,14 @@
|
|||
SKIP_PLUGINS=0
|
||||
RUN_TESTS=1
|
||||
shift
|
||||
|
||||
;;
|
||||
*)
|
||||
echo "${RED}Error: ${WHITE}Need a target to audit${NORMAL}"
|
||||
echo " "
|
||||
echo "Examples:"
|
||||
echo "lynis audit dockerfile"
|
||||
echo "lynis audit system"
|
||||
ExitFatal
|
||||
;;
|
||||
esac
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue