mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
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…
x
Reference in New Issue
Block a user