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