From b17c6904276aa277645a28a17139b1076b6ee800 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Mon, 16 Mar 2020 23:37:11 +0100 Subject: [PATCH] Set Lessons folder --- clone_projects.sh | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/clone_projects.sh b/clone_projects.sh index 8180c77..1145637 100644 --- a/clone_projects.sh +++ b/clone_projects.sh @@ -7,13 +7,25 @@ # REPOS ON LIME2 # ################## +echo "Setting up Lessons..." +mkdir ~/Lessons + echo "Setting up E2L..." -if [ -e ~/E2L ]; then +if [ -e ~/Lessons/E2L ]; then echo "${GREEN}E2L is already there, updating...${NC}" - cd ~/E2L && git pull + cd ~/Lessons/E2L && git pull else echo "${ORANGE}Cloning new E2L...${NC}" - cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/E2L.git + cd ~/Lessons && git clone ssh://flyingscorpio@2px.info.tm/~/repos/E2L.git +fi + +echo "Setting up OpenClassrooms..." +if [ -e ~/Lessons/OpenClassrooms ]; then + echo "${GREEN}OpenClassrooms is already there, updating...${NC}" + cd ~/Lessons/OpenClassrooms && git pull +else + echo "${ORANGE}Cloning new OpenClassrooms...${NC}" + cd ~/Lessons && git clone ssh://flyingscorpio@2px.info.tm/~/repos/OpenClassrooms.git fi echo "Setting up Keepass..." @@ -25,15 +37,6 @@ else cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/Keepass.git fi -echo "Setting up Lessons..." -if [ -e ~/Lessons ]; then - echo "${GREEN}Lessons is already there, updating...${NC}" - cd ~/Lessons && git pull -else - echo "${ORANGE}Cloning new Lessons...${NC}" - cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/Lessons.git -fi - echo "Setting up PersonnalScripts..." if [ -e ~/PersonnalScripts ]; then echo "${GREEN}PersonnalScripts is already there, updating...${NC}"