Skip to content

Commit

Permalink
corrects some shellcheck complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
adagios committed May 23, 2016
1 parent 6c04fad commit cd0f1ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/dump-remote-DBs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ BDs=$2
DEST=$3


IFS=: read -a arrBDs <<< "$BDs"
IFS=: read -a -r arrBDs <<< "$BDs"

echo "Backing up BDs [${arrBDs[@]}] to $DEST"

for bd in ${arrBDs[@]}
for bd in "${arrBDs[@]}"
do
echo "backing up $bd"
ssh -C $HOST mysqldump -u root --hex-blob $bd | gzip > $DEST/$bd.sql.gz
ssh -C "$HOST" mysqldump -u root --hex-blob "$bd" | gzip > "$DEST/$bd.sql.gz"
done

0 comments on commit cd0f1ba

Please sign in to comment.