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
|
SKIP_PLUGINS=0
|
||||||
RUN_TESTS=1
|
RUN_TESTS=1
|
||||||
shift
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "${RED}Error: ${WHITE}Need a target to audit${NORMAL}"
|
||||||
|
echo " "
|
||||||
|
echo "Examples:"
|
||||||
|
echo "lynis audit dockerfile"
|
||||||
|
echo "lynis audit system"
|
||||||
|
ExitFatal
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue