refactor(delete-merged-branches): rm -n1 from xargs, fmt pipes (#1233)

This commit is contained in:
Ricardo Fernández Serrata 2026-05-18 04:10:46 -04:00 committed by GitHub
parent 9d6319becb
commit 99207eee8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,5 +3,5 @@
branches=$(git branch --no-color --merged | grep -vE "^(\*|\+)" | grep -v "$(git_extra_default_branch)" | grep -v svn)
if [ -n "$branches" ]
then
echo "$branches" | xargs -n 1 git branch -d
echo "$branches" | xargs git branch -d
fi