mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Add salt-git-ssh script to pass the ssh identity to the git command.
This commit is contained in:
parent
3cda06b63d
commit
4b620f0097
6
scripts/salt-git-ssh
Executable file
6
scripts/salt-git-ssh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
OPTS="-oStrictHostKeyChecking=no -oPasswordAuthentication=no -oKbdInteractiveAuthentication=no -oChallengeResponseAuthentication=no"
|
||||
if [ ! -z "$GIT_IDENTITY" ]; then
|
||||
OPTS="$OPTS -i $GIT_IDENTITY"
|
||||
fi
|
||||
exec ssh $OPTS "$@"
|
Loading…
Reference in New Issue
Block a user