From 4e4ae621315d8812d9a18a3b1c0cf376c1aadefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20Koz=C5=82owski?= Date: Fri, 27 Sep 2024 17:03:17 +0200 Subject: [PATCH] Fix version info when git is not available --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8070cb4..bab585d 100644 --- a/Makefile +++ b/Makefile @@ -104,7 +104,7 @@ endif PCFLAGS += -Wstrict-prototypes -fno-stack-protector -fpie -nostdlib -ffreestanding -fomit-frame-pointer -Wa,--noexecstack -GIT_VERSION = $(shell git describe --dirty 2>/dev/null | sed 's/^v//' || echo "unknown") +GIT_VERSION = $(shell (git describe --dirty 2>/dev/null || echo "unknown") | sed 's/^v//') GOFF = ./gen-offsets.sh