diff --git a/Makefile b/Makefile index b830eb89f5..e5231eb4fb 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ endif .PHONY: all clean all: - $(shell bin/get_version.sh) + $(shell bin/get_version.sh >> /dev/null) $(DOCKER) build --tag zmk --file Dockerfile . $(DOCKER) run --rm -it --name zmk \ -v $(PWD)/firmware:/app/firmware$(SELINUX1) \ diff --git a/bin/get_version.sh b/bin/get_version.sh index 7619437b7c..a1b1d6e7e4 100755 --- a/bin/get_version.sh +++ b/bin/get_version.sh @@ -2,8 +2,8 @@ # Get the date, first 4 chars of branch name and short commit hash date=$(date -u +"%Y%m%d") -branch=${1:-(git rev-parse --abbrev-ref HEAD | cut -c1-4)} -commit=${2:-(git rev-parse --short HEAD)} +branch=${1:-$(git rev-parse --abbrev-ref HEAD | cut -c1-4)} +commit=${2:-$(git rev-parse --short HEAD)} # Function to transform characters to ZMK key behaviours transform_char() {