From d9e78a9ae15ffb4ef90a79f20634c9190e2c9970 Mon Sep 17 00:00:00 2001 From: Rodolfo Date: Mon, 1 Jul 2024 14:24:42 +0800 Subject: [PATCH] Update start-setup.sh to consider if the repo has been pulled or not before starting --- start-setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/start-setup.sh b/start-setup.sh index 419b49d..7bcecc1 100755 --- a/start-setup.sh +++ b/start-setup.sh @@ -23,8 +23,10 @@ if [[ ! -f /bin/git ]]; then echo "" fi -echo "git clone https://gitea.barcelli.net/rodolfo/arch-automated-installer /home/$(whoami)/Repos/arch-automated-installer" -cd /home/$(whoami)/Repos/arch-automated-installer +if [[ ! -d /home/$(whoami)/Repos/arch-automated-installer ]]; then + echo "git clone https://gitea.barcelli.net/rodolfo/arch-automated-installer /home/$(whoami)/Repos/arch-automated-installer" + echo "cd /home/$(whoami)/Repos/arch-automated-installer" +fi script_PATH=$(pwd)