Semaphore/lib/scripts/pullGit.sh
2014-08-24 22:00:05 +01:00

10 lines
215 B
Bash
Executable File

#!/bin/bash
printf "#\041/bin/bash\nssh -i /root/.ssh/id_rsa \$1 \$2\n" > /root/ssh_wrapper.sh
chmod +x /root/ssh_wrapper.sh
cd /root
GIT_SSH=/root/ssh_wrapper.sh git clone "$1" $2
if [ $? -ne 0 ]; then
exit 2
fi