Skip to content

Commit eae0932

Browse files
committed
fix suggestions from the linter
1 parent 16de4b2 commit eae0932

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

share/github-backup-utils/ghe-backup-mssql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export_tool_available() {
3030
}
3131

3232
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" "$@"
3434
}
3535

3636
cleanup() {
@@ -55,8 +55,8 @@ isHA="$(ghe-ssh "$GHE_HOSTNAME" -- "ghe-config cluster.ha" || true)"
5555
# get server hostnames under cluster and HA
5656
if [ "$GHE_BACKUP_STRATEGY" = "cluster" ] || [ "$isHA" = "true" ] ; then
5757
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")
6060
ghe-ssh-config "$GHE_HOSTNAME" "$GHE_MSSQL_PRIMARY_HOST" > "$ssh_config_file"
6161
fi
6262

0 commit comments

Comments
 (0)