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