From 85026e3f708d163c90c623cad6c93024b357fc4e Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 8 Jan 2023 20:59:12 +0100 Subject: debvm-waitssh: bad usage should result in exit 2 --- debvm-waitssh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debvm-waitssh b/debvm-waitssh index 246db17..e4f05ee 100755 --- a/debvm-waitssh +++ b/debvm-waitssh @@ -147,7 +147,7 @@ case "$HOST" in *@*) if [ "$VERBOSITY" -ge 1 ]; then echo "$0: hostname '$HOST' must not contain the '@' character. No username is required." >&2 fi - exit 1 + exit 2 ;; esac @@ -160,7 +160,7 @@ case "$PORT" in *[!0123456789]*|0?*|""|??????*) if [ "$VERBOSITY" -ge 1 ]; then echo "$0: port '$PORT' is not a positive integer between 1 and 99999" >&2 fi - exit 1 + exit 2 ;; esac -- cgit v1.2.3