Fix incorrect expansion of array in s3backup.sh

This commit is contained in:
Salt 2020-12-29 08:44:11 -06:00
parent 1933ba21c0
commit a5b83e1a59

View File

@ -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