From ed4074dd02ce4109b4d6c3cfac269371c16e6499 Mon Sep 17 00:00:00 2001 From: Eliminater74 Date: Sun, 29 Aug 2021 09:30:34 -0400 Subject: [PATCH] Another fix --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 24a78d2..99c4389 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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"