Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- VERSION="$1"
- if [ -z "$VERSION" ];then
- echo "Version argument is mandantory" >&2
- exit 1
- fi
- if expr "$VERSION" : "^v[0-9]\+\.[0-9]\+\.[0-9]\+" >/dev/null;then
- git commit --allow-empty -m "$VERSION"
- git tag $VERSION
- else
- echo "Not a valid version" >&2
- exit 2
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement