From: Roland Häder 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/?p=jprojects-scripts.git;a=commitdiff_plain;h=85cb2787868b770292c35728755faa80c56ceec5 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}' ..."