Added (Check Duplicates Before Adding New User)
parent
0ae5bc5a4a
commit
f5266b69a2
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue