From a08f20254ecae5145c915d9be1138ced36f4d82c Mon Sep 17 00:00:00 2001 From: Mohamad <136313810+MohamadNateqi@users.noreply.github.com> Date: Mon, 4 Nov 2024 12:53:31 +0330 Subject: [PATCH] Fix: remove files from SVN that were mistakenly left undeleted from "Menu Bar Cart" (#64) --- deploy.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 3cd1cb4..1f5e7f8 100644 --- a/deploy.sh +++ b/deploy.sh @@ -26,10 +26,8 @@ svn status | grep '^[!?]' | while IFS= read -r line; do status="${line:0:1}" file="${line:8}" if [ "$status" = "!" ]; then - echo "Deleting: $file" svn delete "$file" elif [ "$status" = "?" ]; then - echo "Adding: $file" svn add "$file" fi done @@ -69,6 +67,17 @@ svn update --set-depth infinity tags/$VERSION # Copy files from release to `svn/trunk` rsync -rcm --exclude-from="$GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/" trunk/ --delete --delete-excluded +# Detect and schedule additions and deletions in SVN +svn status | grep '^[!?]' | while IFS= read -r line; do + status="${line:0:1}" + file="${line:8}" + if [ "$status" = "!" ]; then + svn delete "$file" + elif [ "$status" = "?" ]; then + svn add "$file" + fi +done + # Prepare the files for commit in SVN svn add --force trunk