diff --git a/Makefile b/Makefile index 2112acd..207b06d 100644 --- a/Makefile +++ b/Makefile @@ -257,7 +257,7 @@ info: @echo " Docker: $(shell docker --version 2>/dev/null || echo 'not found')" # ---------- Release Management ---------- -VERSION := $(shell grep -oP "VERSION = \"\K[^\"]+" src/pyhdwallet.py || echo "v1.1.0") +VERSION := $(shell grep 'VERSION = ' src/pyhdwallet.py | head -1 | sed 's/.*"\(.*\)".*/\1/' || echo "v1.1.0") RELEASE_DIR := releases/$(VERSION) .PHONY: release-prep