Try to remove deletion in a very brutal way

This commit is contained in:
plocket 2020-10-16 18:06:33 -04:00 committed by GitHub
parent 5d8dc0fe1a
commit 97b4137705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,10 +26,10 @@ git config --global user.name "$GITHUB_USERNAME"
git clone --single-branch --branch "$TARGET_BRANCH" "https://$API_TOKEN_GITHUB@github.com/$REPO_USERNAME/$GITHUB_REPO.git" "$CLONE_DIR"
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)
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)
#ls -la "$CLONE_DIR"
echo "Copying contents to to git repo"
cp -r "$FOLDER"/* "$CLONE_DIR"