From 86296f2776d325fc0d40b6eb95ac97cc7b592481 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Thu, 11 May 2023 12:21:00 +0200 Subject: Ignore error in case there is no git --- client/go/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/go/Makefile b/client/go/Makefile index 72acf5896e7..9edfc940151 100644 --- a/client/go/Makefile +++ b/client/go/Makefile @@ -3,7 +3,7 @@ # The version to release. Defaults to the current tag or revision. # Use env VERSION=X.Y.Z make ... to override VERSION ?= $(shell git describe --tags --exact-match 2> /dev/null | sed "s/^v//") -DEVEL_VERSION := $(shell echo "0.0.0-`git rev-parse --short HEAD`") +DEVEL_VERSION := $(shell echo "0.0.0-`git rev-parse --short HEAD 2> /dev/null || echo unknown`") ifeq ($(VERSION),) VERSION = $(DEVEL_VERSION) endif -- cgit v1.2.3