fix release script template
This commit is contained in:
parent
8f5f249227
commit
fa4862a4f1
2
release
2
release
@ -7,7 +7,7 @@ git status --porcelain | grep -q "" &&
|
|||||||
_err "working tree is dirty, commit your changes first."
|
_err "working tree is dirty, commit your changes first."
|
||||||
|
|
||||||
[[ "$1" =~ ^v([0-9]+)\.([0-9]+)(\.([0-9]+))?$ ]] || \
|
[[ "$1" =~ ^v([0-9]+)\.([0-9]+)(\.([0-9]+))?$ ]] || \
|
||||||
_err "arg1 accepts the following formats: 1.0 1.0.0"
|
_err "arg1 accepts the following formats: v1.0 v1.0.0"
|
||||||
|
|
||||||
git tag | grep -q "^$1$" &&
|
git tag | grep -q "^$1$" &&
|
||||||
_err "tag $1 already exists"
|
_err "tag $1 already exists"
|
||||||
|
Loading…
Reference in New Issue
Block a user