|
@ -1,4 +1,4 @@ |
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
#!/bin/bash -x |
|
|
|
|
|
|
|
|
function usage() { |
|
|
function usage() { |
|
|
echo 'usage: --major | -M | --minor | -m | --patch | -p' |
|
|
echo 'usage: --major | -M | --minor | -m | --patch | -p' |
|
@ -119,7 +119,7 @@ esac |
|
|
|
|
|
|
|
|
TAG="$MAJOR.$MINOR.$PATCH" |
|
|
TAG="$MAJOR.$MINOR.$PATCH" |
|
|
echo "new TAG $TAG" |
|
|
echo "new TAG $TAG" |
|
|
exit 1 |
|
|
|
|
|
|
|
|
|
|
|
# check if tag exists already! |
|
|
# check if tag exists already! |
|
|
if [[ -n $(git tag -l $TAG) ]]; then |
|
|
if [[ -n $(git tag -l $TAG) ]]; then |
|
|
echo "WARNING: ${TAG} already exists!" |
|
|
echo "WARNING: ${TAG} already exists!" |
|
|