Update build.sh
This commit is contained in:
parent
c38ef37b5f
commit
2d6d8c6490
4
build.sh
4
build.sh
@ -48,8 +48,8 @@ do
|
|||||||
|
|
||||||
# Clone and copy the repository
|
# Clone and copy the repository
|
||||||
rm -rfv "$(basename "$git" .git)"
|
rm -rfv "$(basename "$git" .git)"
|
||||||
rsa_filename="/etc/lixonet/${netname}/$(basename "$git" .git).key"
|
rsa_filename="/etc/lixonet/${netname}/id_rsa"
|
||||||
if [ ! -f $rsa_filename ]; then rsa_filename="/etc/lixonet/${netname}/id_rsa"; fi
|
if [ ! -f $rsa_filename ]; then rsa_filename="/etc/lixonet/id_rsa"; fi
|
||||||
echo "Using SSH key: $rsa_filename"
|
echo "Using SSH key: $rsa_filename"
|
||||||
GIT_SSH_COMMAND="ssh -i $rsa_filename -o IdentitiesOnly=yes" git clone $git || { echo "clone $git failed, quitting" ; exit 1; }
|
GIT_SSH_COMMAND="ssh -i $rsa_filename -o IdentitiesOnly=yes" git clone $git || { echo "clone $git failed, quitting" ; exit 1; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user