remove one check, add log

This commit is contained in:
gqx 2024-04-19 16:28:56 +03:00
parent 3f57d6e539
commit 8aec05af30

View File

@ -100,12 +100,7 @@ TEMP_DIR=$(mktemp -d)
# but not anymore. Otherwise we had to remove the files from "$CLONE_DIR",
# including "." and with the exception of ".git/"
mv "$CLONE_DIR/.git" "$TEMP_DIR/.git"
# If enabled, copy .gitattributes file to keep LFS working.
if [ "$KEEP_GITATTRIBUTES" = "true" ]
then
mv "$CLONE_DIR/.gitattributes" "$TEMP_DIR/.gitattributes"
fi
mv "$CLONE_DIR/.gitattributes" "$TEMP_DIR/.gitattributes"
# $TARGET_DIRECTORY is '' by default
@ -127,6 +122,7 @@ mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
# If enabled, restore .gitattributes file to keep LFS working.
if [ "$KEEP_GITATTRIBUTES" = "true" ]
then
echo "[+] Restoring .gitattributes file"
mv "$TEMP_DIR/.gitattributes" "$CLONE_DIR/.gitattributes"
fi