From c917e1547e5df30770061dcdeca515c3a639c09d Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Sun, 8 Dec 2024 14:44:53 +0100 Subject: [PATCH] update check directory --- setup.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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 ""