diff --git a/init.sh b/init.sh index 4bf960d..caa0e98 100755 --- a/init.sh +++ b/init.sh @@ -68,11 +68,13 @@ function start_ssh_agent(){ function init_repos(){ + if [ -d "$WA_REPO" ]; then echo "$WA_REPO does exist, skipping cloning" source $WA_REPO/export_client_name.sh echo "found client name: $CLIENT_NAME" source $HOME/.zshrc + git_pull else echo -n "client name: " @@ -106,13 +108,10 @@ function init_repos(){ cat $HOME/.ssh/deploy_key.pub fi - - echo " " echo -n "ready to pull? type yes: " read -r ready_to_pull - if [ "$ready_to_pull" = "yes" ]; then start_ssh_agent