File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export_tool_available() {
30
30
}
31
31
32
32
ghe_ssh_mssql () {
33
- ghe-ssh " $opts " " $ssh_config_file_opt " " $GHE_MSSQL_PRIMARY_HOST " " $@ "
33
+ ghe-ssh " ${ opts[@]} " " ${ ssh_config_file_opt[@]} " " $GHE_MSSQL_PRIMARY_HOST " " $@ "
34
34
}
35
35
36
36
cleanup () {
@@ -55,8 +55,8 @@ isHA="$(ghe-ssh "$GHE_HOSTNAME" -- "ghe-config cluster.ha" || true)"
55
55
# get server hostnames under cluster and HA
56
56
if [ " $GHE_BACKUP_STRATEGY " = " cluster" ] || [ " $isHA " = " true" ] ; then
57
57
ssh_config_file=" $tempdir /ssh_config"
58
- ssh_config_file_opt=" -F $ssh_config_file "
59
- opts=" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no"
58
+ ssh_config_file_opt=( " -F" " $ssh_config_file " )
59
+ opts=( " -o" " UserKnownHostsFile=/dev/null" " -o " " StrictHostKeyChecking=no" " -o " " PasswordAuthentication=no" )
60
60
ghe-ssh-config " $GHE_HOSTNAME " " $GHE_MSSQL_PRIMARY_HOST " > " $ssh_config_file "
61
61
fi
62
62
You can’t perform that action at this time.
0 commit comments