From a5b83e1a5936bc9ee4622f3cf1c9acbdd03662a3 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 29 Dec 2020 08:44:11 -0600 Subject: [PATCH] Fix incorrect expansion of array in s3backup.sh --- roles/backup/templates/s3backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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