1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-12-22 20:33:56 +01:00

Error on unknown batch format

This commit is contained in:
Marcus Downing 2018-01-10 13:57:10 +00:00
parent 7c11d07865
commit 59fe8c2ad8

View File

@ -244,6 +244,13 @@ while [ -n "$1" ]; do
shift
case "$1" in
text|nrpe) opt_batch_format="$1"; shift;;
--*) ;; # allow subsequent flags
'') ;; # allow nothing at all
*)
echo "$0: error: unknown batch format '$1'"
echo "$0: error: --batch expects a format from: text, nrpe"
exit 1 >&2
;;
esac
elif [ "$1" = "-v" -o "$1" = "--verbose" ]; then
opt_verbose=$(expr $opt_verbose + 1)