diff --git a/roles/backup/templates/s3backup.sh b/roles/backup/templates/s3backup.sh index 42b8fc6..028a144 100644 --- a/roles/backup/templates/s3backup.sh +++ b/roles/backup/templates/s3backup.sh @@ -38,7 +38,7 @@ export AWS_SECRET_ACCESS_KEY="{{ backup_s3_aws_secret_access_key }}" # Tar up all items in the backup list, recursively, and pipe them straight # up to S3 -if [ -z "${DIRS[@]}" ]; then +if [ -z "${DIRS[*]}" ]; then echo "No directories configured to back up!" exit 0 fi