mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-12-23 04:43:37 +01:00
Error on unknown batch format
This commit is contained in:
parent
7c11d07865
commit
59fe8c2ad8
@ -244,6 +244,13 @@ while [ -n "$1" ]; do
|
|||||||
shift
|
shift
|
||||||
case "$1" in
|
case "$1" in
|
||||||
text|nrpe) opt_batch_format="$1"; shift;;
|
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
|
esac
|
||||||
elif [ "$1" = "-v" -o "$1" = "--verbose" ]; then
|
elif [ "$1" = "-v" -o "$1" = "--verbose" ]; then
|
||||||
opt_verbose=$(expr $opt_verbose + 1)
|
opt_verbose=$(expr $opt_verbose + 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user