diff options
author | Bradley Sepos <[email protected]> | 2016-12-18 16:51:51 -0500 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2016-12-18 16:51:51 -0500 |
commit | e2f915885842057d429954990d52da311f5c9582 (patch) | |
tree | 8ca8b9c157daae2229c02b454c0f8ab794bfb22d /scripts | |
parent | 061c7af8ba08d1a9b166c323a99484ed07f265c7 (diff) |
scripts: Print usage and exit when release tag not specified to tag-release.sh.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tag-release.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/tag-release.sh b/scripts/tag-release.sh index 9f7d488f6..10b938bf7 100755 --- a/scripts/tag-release.sh +++ b/scripts/tag-release.sh @@ -22,6 +22,9 @@ # git push origin refs/tags/X.Y.Z # +SELF="${BASH_SOURCE[0]}" +SELF_NAME=$(basename "${SELF}") + GIT_EXE='git' function validate_repo() @@ -85,7 +88,9 @@ function tag_release() REF=${2} if [ "x${TAG}" == "x" ]; then - echo "Missing release tag (e.g. 0.10.0)" + echo "Missing release tag (e.g. 1.0.0)" + echo "Usage: ${SELF_NAME} tag [commit]" + return 1 fi # bugfix branch name |