mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-03 00:07:05 +00:00
validate argument
This commit is contained in:
parent
b8313cdbf7
commit
ae056e507b
@ -44,7 +44,7 @@ exit \$rc
|
|||||||
"
|
"
|
||||||
provision_done $?
|
provision_done $?
|
||||||
|
|
||||||
else
|
elif [ -z "$1" ]; then
|
||||||
# vanilla (default - no miab integration)
|
# vanilla (default - no miab integration)
|
||||||
provision_shell <<<"
|
provision_shell <<<"
|
||||||
cd /mailinabox
|
cd /mailinabox
|
||||||
@ -62,4 +62,7 @@ exit \$rc
|
|||||||
"
|
"
|
||||||
provision_done $?
|
provision_done $?
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Invalid argument: $1"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user