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
8
bump-tag
8
bump-tag
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue