Included ft improvement to able to specify tag for bump-tag

Also changed from #!/bin/sh -> #!/bin/bash
since echo -e is not supported in sh
This commit is contained in:
John Van de Meulebrouck Brendgard 2016-08-28 17:12:10 +02:00
parent b9ec2c8f69
commit 55da5cd7ea
No known key found for this signature in database
GPG key ID: 807A5FD4B3337B77

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e
@ -8,7 +8,11 @@ echo "Fetching any updates from server:"
git pull
echo ""
if [ "x$1" = "x" ]; then
deftag=`basename $PWD`
else
deftag="$1"
fi
tagpfx=${tag:="$deftag"}
last_tag=`git tag -l "${tagpfx}-*"|sort|tail -1`
@ -39,7 +43,7 @@ done
if [ "$deftag" != "$tagpfx" ]; then
echo -e "Using new tag \e[94m$this_tag\e[0m according to pattern in cosmos.conf"
else
echo "Using new tag \e[94m$this_tag\e[0m"
echo -e "Using new tag \e[94m$this_tag\e[0m"
fi
echo -e "\e[1mONLY SIGN IF YOU APPROVE OF VERIFICATION AND DIFF ABOVE\e[0m"