From f5266b69a2d72e59517fd3a5ab9bed7be1e20804 Mon Sep 17 00:00:00 2001 From: h4775346 Date: Mon, 1 Jul 2024 19:40:07 +0300 Subject: [PATCH] Added (Check Duplicates Before Adding New User) --- sas4-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sas4-install.sh b/sas4-install.sh index 0ea72b3..53346a6 100644 --- a/sas4-install.sh +++ b/sas4-install.sh @@ -14,8 +14,9 @@ apt-get install -y git unzip curl apache2 if [ ! -d "$TARGET_DIR" ]; then git clone $REPO_URL $TARGET_DIR else - echo "Directory $TARGET_DIR already exists. Pulling the latest changes." + echo "Directory $TARGET_DIR already exists. Stashing local changes and pulling the latest changes." cd $TARGET_DIR + git stash git pull fi