Don't both with trying to report the number of branches changed
This commit is contained in:
@@ -3,15 +3,9 @@
|
|||||||
git checkout master
|
git checkout master
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
DELETED="0"
|
|
||||||
git branch --merged master | grep -v master | while read BRANCH; do
|
git branch --merged master | grep -v master | while read BRANCH; do
|
||||||
git branch -d $BRANCH
|
git branch -d $BRANCH
|
||||||
(( DELETED = DELETED + 1 ))
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ "$DELETED" -eq "0" ]]; then
|
|
||||||
echo "No branches to clean up."
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Branches remaining:"
|
echo "Branches remaining:"
|
||||||
git branch
|
git branch
|
||||||
|
|||||||
Reference in New Issue
Block a user