From 8aec05af3066609ebbc02f386fccb4bd04fa5093 Mon Sep 17 00:00:00 2001 From: gqx Date: Fri, 19 Apr 2024 16:28:56 +0300 Subject: [PATCH] remove one check, add log --- entrypoint.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4f2eafa..977848b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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