From ae056e507beaf86272dc5cdc20545f5d9c2ae41c Mon Sep 17 00:00:00 2001 From: downtownallday Date: Fri, 4 Oct 2024 16:26:29 -0400 Subject: [PATCH] validate argument --- tests/lxd/vanilla/provision.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/lxd/vanilla/provision.sh b/tests/lxd/vanilla/provision.sh index 3d153e66..a70c09a9 100755 --- a/tests/lxd/vanilla/provision.sh +++ b/tests/lxd/vanilla/provision.sh @@ -44,7 +44,7 @@ exit \$rc " provision_done $? -else +elif [ -z "$1" ]; then # vanilla (default - no miab integration) provision_shell <<<" cd /mailinabox @@ -62,4 +62,7 @@ exit \$rc " provision_done $? +else + echo "Invalid argument: $1" + exit 1 fi