From 860a5031a9a5963bda6ef90eb6e6caccfa823022 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sat, 19 Oct 2024 16:12:03 -0500 Subject: [PATCH] simplify version check --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b430e10..6661b2d 100644 --- a/Makefile +++ b/Makefile @@ -41,12 +41,9 @@ c clean: ## remove the generated files define version_check_sh if git rev-parse -q --verify "refs/tags/${VERSION}" >/dev/null; then $(call tprint-verbose,{a.red}VERSION INVALID!{a.end} tag already exists); exit 1; -elif [[ "${VERSION}" == *'-'* ]]; 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