mirror of
https://github.com/daylinmorgan/task.mk.git
synced 2024-12-21 17:40:45 -06:00
simplify version check
This commit is contained in:
parent
1ecc7f9f34
commit
860a5031a9
1 changed files with 1 additions and 4 deletions
3
Makefile
3
Makefile
|
@ -44,9 +44,6 @@ if git rev-parse -q --verify "refs/tags/${VERSION}" >/dev/null; then
|
|||
elif [[ "${VERSION}" == *'-'* ]]; then
|
||||
$(call tprint-verbose,{a.red}VERSION INVALID!{a.end} Uncommited or untagged work); exit 1;
|
||||
exit 1
|
||||
elif [[ $(shell echo "${VERSION}" | awk -F. '{ print NF }') -lt 3 ]];then\
|
||||
$(call tprint-verbose,{a.red}VERSION INVALID!{a.end} Expected CalVer string)
|
||||
exit 1
|
||||
fi
|
||||
endef
|
||||
|
||||
|
|
Loading…
Reference in a new issue