When audit target is missing, stop execution

This commit is contained in:
Michael Boelen 2019-08-22 14:11:22 +02:00
parent b7641cc16a
commit a72650252f
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 8 additions and 1 deletions

View File

@ -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