Restore the .git even in the code path without target_directory

This commit is contained in:
Carles Pina i Estany 2021-10-26 00:04:38 +01:00
parent 66ead10846
commit 460cd93e14

View File

@ -54,8 +54,6 @@ then
echo "[+] Creating $TARGET_DIRECTORY if doesnt already exist" echo "[+] Creating $TARGET_DIRECTORY if doesnt already exist"
mkdir -p "$CLONE_DIR/$TARGET_DIRECTORY" mkdir -p "$CLONE_DIR/$TARGET_DIRECTORY"
mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
echo "[+] Listing Current Directory Location" echo "[+] Listing Current Directory Location"
ls -al ls -al
@ -63,6 +61,8 @@ then
ls -al / ls -al /
fi fi
mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
echo "[+] List contents of $SOURCE_DIRECTORY" echo "[+] List contents of $SOURCE_DIRECTORY"
ls "$SOURCE_DIRECTORY" ls "$SOURCE_DIRECTORY"