From 3d4da26ca5de58bea21bce5c3ee055c562915edf Mon Sep 17 00:00:00 2001 From: Carles Pina i Estany Date: Wed, 2 Dec 2020 15:43:05 +0000 Subject: [PATCH] Fixed problem deleting files starting with .git (e.g. .gitattributes) --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4ed4c01..8718a4a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -28,7 +28,7 @@ ls -la "$CLONE_DIR" echo "Cleaning destination repository of old files" # Copy files into the git and deletes all git -find "$CLONE_DIR" | grep -v "^$CLONE_DIR/\.git" | grep -v "^$CLONE_DIR$" | xargs rm -rf # delete all files (to handle deletions) +find "$CLONE_DIR" | grep -v "^$CLONE_DIR/\.git$" | grep -v "^$CLONE_DIR$" | xargs rm -rf # delete all files (to handle deletions) ls -la "$CLONE_DIR" echo "Copying contents to git repo"