Prefix version strings with 'v'.
- Makes it safer to globally replace the version string. - Also emphasises its a version, not just a date.
This commit is contained in:
parent
9273e3cdec
commit
486d7b3f27
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ set -e
|
||||||
[ -e README.md ]
|
[ -e README.md ]
|
||||||
|
|
||||||
|
|
||||||
NEW_VERSION=$(date "+%Y.%m.%d")
|
NEW_VERSION=$(date "+v%Y.%m.%d")
|
||||||
CURRENT_VERSION=$(git describe --tags --abbrev=0)
|
CURRENT_VERSION=$(git describe --tags --abbrev=0)
|
||||||
if [ $NEW_VERSION == $CURRENT_VERSION ]; then
|
if [ $NEW_VERSION == $CURRENT_VERSION ]; then
|
||||||
git tag --delete $CURRENT_VERSION
|
git tag --delete $CURRENT_VERSION
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue