diff --git a/setup.sh b/setup.sh index 6dcc7e3..32d6ab1 100644 --- a/setup.sh +++ b/setup.sh @@ -18,16 +18,13 @@ apt install docker docker-compose -y echo "" echo "4. The installer will clone the Docker-Compose Repository" HOME_DIR=/opt/odc -if [ -d $HOME_DIR/docker-compose ] +if [ -d $HOME_DIR ] then - cd /$HOME_DIR/docker-compose - git add . - git stash - git pull + cd $HOME_DIR + git add . && git stash && git pull else - mkdir /opt/odc && cd /opt/odc - git clone https://git.h2-invent.com/datenschutzcenter/docker-compose.git - cd $HOME_DIR/docker-compose + mkdir $HOME_DIR && cd $HOME_DIR + git clone https://git.h2-invent.com/datenschutzcenter/docker-compose.git . fi echo ""