From 6342cbbd89e67bab3f47dc35b17d7e3334c97aa5 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sun, 2 Dec 2018 14:12:21 -0500 Subject: [PATCH] move git init and git remote add origin to before ssh-agen --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 7a817fc..239a73b 100755 --- a/install.sh +++ b/install.sh @@ -201,9 +201,10 @@ fi if [ $usegit = True ] ; then echo -e "\tCloning django project" - ssh-agent bash -c 'ssh-add $gitkey 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc; git init 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc; git remote add origin $giturl 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc; + ssh-agent bash -c 'ssh-add $gitkey 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc; + git remote add origin $giturl 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc; git pull origin master 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc;' echo -e "\tInstalling pip requirements" pip install -r requirements.txt 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc