diff --git a/tag_release.sh b/tag_release.sh index 1b483248c..0fc7092b0 100755 --- a/tag_release.sh +++ b/tag_release.sh @@ -1,10 +1,12 @@ #!/bin/sh +set -ex + DATE=$(which gdate || which date) git fetch --all -TAG=$($DATE -d "$(git log --tags -1 --format='%aD')" '+%Y.%m.%d') +TAG=$($DATE '+%Y.%m.%d') if git tag -a $TAG -m "Add release $TAG" origin/master; then git push origin $TAG