Skip to content

Commit

Permalink
Fix: remove files from SVN that were mistakenly left undeleted from "…
Browse files Browse the repository at this point in the history
…Menu Bar Cart" (#64)
  • Loading branch information
MohamadNateqi authored Nov 4, 2024
1 parent de3d39d commit a08f202
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a08f202

Please sign in to comment.