X-Git-Url: https://git.mxchange.org/?p=jprojects-scripts.git;a=blobdiff_plain;f=pull-stick.sh;h=b417ff1faad3ede91744e4b35e9bb978612cebd1;hp=4eeb02ea9180aa8aa1bc7bb72b6b14c170630c5d;hb=85cb2787868b770292c35728755faa80c56ceec5;hpb=1b04dc95a7a0be19f5cd1de8f1a8eba36df32165 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}' ..."