Skip to content

Commit

Permalink
chore: abort when only today's branch found
Browse files Browse the repository at this point in the history
  • Loading branch information
therightstuff committed Oct 1, 2023
1 parent 9ddf4fd commit 427d8a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/delete_old_version_testing_branches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ if [ -z "$today_branches" ]; then
echo "No version testing branch from today needs to be protected."
branches_for_deletion=$version_testing_branches
else
if [ "$version_testing_branches" = "$today_branches" ]; then
echo "Today's version testing branch is the only version testing branch, aborting..."
exit 0
fi
echo "Today's version testing branches: $today_branches"
echo "Removing today's version testing branch from the list of branches to be deleted..."
branches_for_deletion=$( \
Expand Down

0 comments on commit 427d8a8

Please sign in to comment.