From: Roland Haeder Date: Fri, 22 Jul 2016 08:42:22 +0000 (+0200) Subject: Allow deleting of branches before anything is pulled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5814e3e15103d8a8a7cdb87647b97e977831d602;p=jprojects-scripts.git Allow deleting of branches before anything is pulled Signed-off-by: Roland Haeder --- diff --git a/pull-stick.sh b/pull-stick.sh index 4eeb02e..b417ff1 100755 --- a/pull-stick.sh +++ b/pull-stick.sh @@ -11,6 +11,11 @@ for project in ${LIST}; do cd "${JPROJECTS_HOME}/${project}" || exit 255 + if [ -n "$2" ] + then + git branch -D "$2" + fi + if [ "$1" = "c" ] then echo "$0: Checkout '${project}' ..."