From 8860638c8788e211222d8369fed869edbcfdbfac Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 9 Jun 2020 05:16:22 -0500 Subject: [PATCH] Supress more AWS stuff --- roles/backups/templates/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/backups/templates/backup.sh b/roles/backups/templates/backup.sh index e7d85a9..27b1459 100644 --- a/roles/backups/templates/backup.sh +++ b/roles/backups/templates/backup.sh @@ -54,7 +54,7 @@ for file in "$MODULESDIR"/*; do done # If we have a fancy schmancy bucket, use it s3bucket="{{ aws_backup_bucket }}" -if command -v aws > /dev/null 2>&1 && aws s3 ls "s3://$s3bucket"; then +if command -v aws > /dev/null 2>&1 && aws s3 ls "s3://$s3bucket" > /dev/null 2>&1; then log "Moving files to S3 bucket $s3bucket" aws s3 mv "$BACKUPSDIR" "s3://$s3bucket" \ --recursive \