Fixes deleting too many files

This commit is contained in:
cpina 2020-03-29 17:49:16 +02:00
parent 062af890e7
commit 60f023a31a

View File

@ -16,7 +16,7 @@ git clone "https://$API_TOKEN_GITHUB@github.com/$GITHUB_USERNAME/$GITHUB_REPO.gi
ls -la "$CLONE_DIR" ls -la "$CLONE_DIR"
# Copy files into the git and deletes all git # Copy files into the git and deletes all git
find "$CLONE_DIR" | grep -v "^$CLONE_DIR/\.git" | 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" ls -la "$CLONE_DIR"