Ver Fonte

Fix branch nuking

Robert Muir há 10 anos atrás
pai
commit
f604182f8c
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      migrate.sh

+ 2 - 1
migrate.sh

@@ -105,7 +105,8 @@ rm -rf target
 # echo "## create git $GIT_BRANCH work branch"
 
 # It first clean the existing branch if any
-git branch -D $GIT_BRANCH > /dev/null
+echo "(You can safely ignore branch not found below)"
+git branch -D $GIT_BRANCH > /dev/null || :
 
 # Create the new branch
 git branch $GIT_BRANCH > /dev/null