laipower/wp-content/plugins/gitium/inc/ssh-git
2020-04-07 13:03:04 +00:00

9 lines
211 B
Bash
Executable File

#!/bin/sh
SSH_AUTH_SOCK=''
SSH="ssh -q -F /dev/null -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
if [ -z "$GIT_KEY_FILE" ] ; then
exec $SSH "$@"
else
exec $SSH -i "$GIT_KEY_FILE" "$@"
fi