Skip to content

Commit 959b624

Browse files
committed
Use -o Opt=val syntax instead of -o 'Opt val'
This just lets us not deal with quoted values here just yet.
1 parent 2a004b2 commit 959b624

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/ghe-host-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ port=$(ssh_port_part "$host")
2424
hostname=$(ssh_host_part "$host")
2525

2626
set +e
27-
output=$(echo "cat \"$GHE_REMOTE_METADATA_FILE\" 2>/dev/null || exit 101" | ghe-ssh -o 'BatchMode no' $options $host -- /bin/sh 2>&1)
27+
output=$(echo "cat \"$GHE_REMOTE_METADATA_FILE\" 2>/dev/null || exit 101" | ghe-ssh -o BatchMode=no $options $host -- /bin/sh 2>&1)
2828
rc=$?
2929
set -e
3030

share/github-backup-utils/ghe-ssh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ fi
6161
$GHE_VERBOSE_SSH && set -x
6262

6363
# Exec ssh command with modified host / port args and add nice to command.
64-
exec ssh "${opts[@]}" -o 'BatchMode yes' "$host" -- $GHE_NICE $GHE_IONICE "$@"
64+
exec ssh "${opts[@]}" -o BatchMode=yes "$host" -- $GHE_NICE $GHE_IONICE "$@"

0 commit comments

Comments
 (0)