chore: Fix debug output

This commit is contained in:
Tracey Clark 2025-12-28 13:23:44 -06:00
commit 34598198c0

View file

@ -4,7 +4,8 @@
git remote prune origin git remote prune origin
GONE_BRANCHES=$(git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}') GONE_BRANCHES=$(git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}')
echo "[DEBUG]: $GONE_BRANCHES" echo "[DEBUG] gone branches:"
echo "$GONE_BRANCHES"
if [ -z "$GONE_BRANCHES" ]; then if [ -z "$GONE_BRANCHES" ]; then
echo "Could not find any local branches where the remote is gone" echo "Could not find any local branches where the remote is gone"
@ -22,7 +23,7 @@ else
fi fi
if [ "$FAILED_TO_DELETE" = "true" ]; then if [ "$FAILED_TO_DELETE" = "true" ]; then
# echo "error: Some local branches are not fully merged." echo "error: Some local branches are not fully merged."
echo echo
echo "If you are sure you want to delete all branches above, run 'git-glean -f'" echo "If you are sure you want to delete all branches above, run 'git-glean -f'"
fi fi