Fix: Cannot use -r on OSX, replacing
This commit is contained in:
parent
17099e5dfe
commit
5ab4584eb2
1 changed files with 3 additions and 1 deletions
|
@ -25,4 +25,6 @@ for branch in $(git branch --merged | grep -v '^*'); do
|
|||
done
|
||||
|
||||
step "Removing local branches where remote branch is gone..."
|
||||
git branch -vv | awk '/: gone]/{print $1}' | xargs -r git branch -D
|
||||
if ( git branch -vv | grep -q ': gone ]' ); then
|
||||
git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue