We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b60bafe + 7bacc2c commit be3397cCopy full SHA for be3397c
share/github-backup-utils/ghe-ssh
@@ -61,7 +61,9 @@ if [ -z "$GHE_DISABLE_SSH_MUX" ]; then
61
controlpath="$TMPDIR/.ghe-sshmux-$(echo -n "$user@$host:$port" | git hash-object --stdin | cut -c 1-8)"
62
opts="-o ControlMaster=auto -o ControlPath=\"$controlpath\" -o ControlPersist=10m -o ServerAliveInterval=10 $opts"
63
# Workaround for https://bugzilla.mindrot.org/show_bug.cgi?id=1988
64
- [ -S $controlpath ] || ssh -f -p $port $opts -o BatchMode=yes "$host" -- /bin/true 1>/dev/null 2>&1 || true
+ if ! [ -S $controlpath ]; then
65
+ ( cd "$TMPDIR" && ssh -f -p $port $opts -o BatchMode=yes "$host" -- /bin/true 1>/dev/null 2>&1 || true )
66
+ fi
67
fi
68
69
# Turn on verbose SSH logging if needed
0 commit comments