Skip to content

Commit 66a67ae

Browse files
committed
wrap check in an if to make it less spammy
1 parent f9d2f6e commit 66a67ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

share/github-backup-utils/ghe-ssh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ if echo "$*" | grep "[|;]" >/dev/null || [ $(echo "$*" | wc -l) -gt 1 ]; then
6363
fi
6464

6565
# Warn if git is not installed, and set GHE_DISABLE_SSH_MUX=true
66-
command -v git >/dev/null 2>&1 || echo "Warning: SSH multiplexing requires git but it's not installed." && export GHE_DISABLE_SSH_MUX=true
66+
if [ -z "$GHE_DISABLE_SSH_MUX" ]; then
67+
command -v git >/dev/null 2>&1 || echo "Warning: SSH multiplexing requires git but it's not installed."
68+
export GHE_DISABLE_SSH_MUX=true
69+
fi
6770

6871
if [ -z "$GHE_DISABLE_SSH_MUX" ]; then
6972
controlpath="$TMPDIR/.ghe-sshmux-$(echo -n "$user@$host:$port" | git hash-object --stdin | cut -c 1-8)"

0 commit comments

Comments
 (0)