diff --git a/build.sh b/build.sh index 2cb69df..1e44500 100755 --- a/build.sh +++ b/build.sh @@ -20,10 +20,14 @@ if [ ! -d $TEMPLATE ]; then git clone git@gordon.zumepro.cz:tul/tultemplate2 $TEMPLATE else cd $TEMPLATE - git pull + git fetch --tags cd .. fi +cd $TEMPLATE +git checkout $(git describe --tags "$(git rev-list --tags --max-count=1)") +cd .. + TEMPLATE_PACKDIR=$TEMPLATE/pack/bundle rm -r $TEMPLATE_PACKDIR