Skip to content

Commit

Permalink
Add missing quotes around ${B2_BUCKET} in case it's not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
dalenewby committed May 3, 2024
1 parent 2e29285 commit c0fb97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ for dbName in ${DB_NAMES}; do
echo "mysql-backup-restore: Copy backup to ${S3_BUCKET} of ${dbName} completed in $(expr ${end} - ${start}) seconds."
fi

if [ ${B2_BUCKET} != "" ]; then
if [ "${B2_BUCKET}" != "" ]; then
start=$(date +%s)
b2 upload-file --noProgress --quiet ${B2_BUCKET} /tmp/${dbName}.sql.gz ${dbName}.sql.gz
STATUS=$?
Expand Down

0 comments on commit c0fb97f

Please sign in to comment.