From ca9b27e9db8ffe875090badcdf6b6047dc758014 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Mon, 8 Apr 2019 21:42:10 -0400 Subject: [PATCH] scripts: better prerelease extractor --- scripts/release/Makefile.linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release/Makefile.linux b/scripts/release/Makefile.linux index cc44da48b..1eee6465e 100644 --- a/scripts/release/Makefile.linux +++ b/scripts/release/Makefile.linux @@ -2,7 +2,7 @@ NOMAD_VERSION = 0.9.0-dev NOMAD_MAIN_VERSION := $(shell echo $(NOMAD_VERSION) | cut -d- -f1) -NOMAD_PRERELEASE_VERSION := $(shell echo $(NOMAD_VERSION) | cut -d- -f2-) +NOMAD_PRERELEASE_VERSION := $(shell echo $(NOMAD_VERSION) | sed 's|^[^-]*-\{0,1\}||g' ) update_version: @echo "updating version to $(NOMAD_MAIN_VERSION)-$(NOMAD_PRERELEASE_VERSION)"