Another fix

This commit is contained in:
Eliminater74 2021-08-29 09:30:34 -04:00
parent 52acf3c68c
commit ed4074dd02
No known key found for this signature in database
GPG Key ID: 2DB13AFD9AF1A53C

View File

@ -45,7 +45,7 @@ echo "[+] Checking if $TARGET_DIRECTORY exist in git repo $DESTINATION_REPOSITOR
if [ -d "$CLONE_DIR/$TARGET_DIRECTORY/" ]
then
echo "[+] Deleting files from $TARGET_DIRECTORY in git repo $DESTINATION_REPOSITORY_NAME"
rm -R "$CLONE_DIR/$TARGET_DIRECTORY/"
rm -R "${CLONE_DIR:?}/$TARGET_DIRECTORY/"
fi
echo "[+] Creating $TARGET_DIRECTORY if doesnt already exist"
mkdir -p "$CLONE_DIR/$TARGET_DIRECTORY"