summaryrefslogtreecommitdiff
path: root/debvm-waitssh
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-01-08 20:59:12 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-01-08 20:59:12 +0100
commit85026e3f708d163c90c623cad6c93024b357fc4e (patch)
tree2376fdb4c9a13a826cf97caaed09f83acfa79873 /debvm-waitssh
parentfa7ce55eb2d61dfd3a6e8056f6217a5888c2798b (diff)
downloaddebvm-85026e3f708d163c90c623cad6c93024b357fc4e.tar.gz
debvm-waitssh: bad usage should result in exit 2
Diffstat (limited to 'debvm-waitssh')
-rwxr-xr-xdebvm-waitssh4
1 files 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