Added (Check Duplicates Before Adding New User)

master
Abanoub Hany 2024-07-01 19:40:07 +03:00
parent 0ae5bc5a4a
commit f5266b69a2
1 changed files with 2 additions and 1 deletions

View File

@ -14,8 +14,9 @@ apt-get install -y git unzip curl apache2
if [ ! -d "$TARGET_DIR" ]; then if [ ! -d "$TARGET_DIR" ]; then
git clone $REPO_URL $TARGET_DIR git clone $REPO_URL $TARGET_DIR
else 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 cd $TARGET_DIR
git stash
git pull git pull
fi fi