From 460cd93e14d38f4b44d6573d92cb6727f8a981a8 Mon Sep 17 00:00:00 2001 From: Carles Pina i Estany Date: Tue, 26 Oct 2021 00:04:38 +0100 Subject: [PATCH] Restore the .git even in the code path without target_directory --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index e5db456..9d0b836 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -54,8 +54,6 @@ then echo "[+] Creating $TARGET_DIRECTORY if doesnt already exist" mkdir -p "$CLONE_DIR/$TARGET_DIRECTORY" - mv "$TEMP_DIR/.git" "$CLONE_DIR/.git" - echo "[+] Listing Current Directory Location" ls -al @@ -63,6 +61,8 @@ then ls -al / fi +mv "$TEMP_DIR/.git" "$CLONE_DIR/.git" + echo "[+] List contents of $SOURCE_DIRECTORY" ls "$SOURCE_DIRECTORY"