Skip to content

Commit 195882a

Browse files
committed
Quote variable for protection
1 parent 9f728a1 commit 195882a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/github-backup-utils/ghe-restore-mysql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ snapshot_dir="$GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT"
3131
ssh_config_file_opt=
3232
if is_binary_backup_feature_on; then
3333
# Feature "mysql.backup.binary" is on, which means new backup scripts are available
34-
if is_binary_backup $snapshot_dir; then
34+
if is_binary_backup "$snapshot_dir"; then
3535
if $CLUSTER ; then
3636
ghe_mysql_master=$(ghe-ssh "$GHE_HOSTNAME" ghe-config "cluster.mysql-master")
3737
if [ -z $ghe_mysql_master ]; then
@@ -64,7 +64,7 @@ if is_binary_backup_feature_on; then
6464
fi
6565
else
6666
# We do not allow to restore binary backup without "mysql.backup.binary" set
67-
if is_binary_backup $snapshot_dir; then
67+
if is_binary_backup "$snapshot_dir"; then
6868
echo "To restore from a binary backup, you have to set ghe-config \"mysql.backup.binary\" to true" >&2
6969
exit 2
7070
else

0 commit comments

Comments
 (0)