Supress more AWS stuff

This commit is contained in:
Salt 2020-06-09 05:16:22 -05:00
parent 231c704bd6
commit 8860638c87

View File

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