Shell uses obviously == no ===

This commit is contained in:
Johannes Zellner
2016-09-16 14:02:29 +02:00
parent 02d1238853
commit 746afb2b21

View File

@@ -14,12 +14,12 @@ fi
# verify argument count
if [[ "$1" === "s3" && $# -lt 6 ]]; then
if [[ "$1" == "s3" && $# -lt 6 ]]; then
echo "Usage: backupbox.sh s3 <s3 url> <access key id> <access key> <region> <password> [session token]"
exit 1
fi
if [[ "$1" === "filesystem" && $# -lt 4 ]]; then
if [[ "$1" == "filesystem" && $# -lt 4 ]]; then
echo "Usage: backupbox.sh filesystem <backupFolder> <fileName> <password>"
exit 1
fi