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"