diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-05-11 12:21:00 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-05-11 12:26:15 +0200 |
commit | 86296f2776d325fc0d40b6eb95ac97cc7b592481 (patch) | |
tree | 95e4acda8316c532c63a5cb12a2b3ed9b5e056e1 /client/go/Makefile | |
parent | 7dd81612168d7958f45da66ac39b0570811a5d0d (diff) |
Ignore error in case there is no git
Diffstat (limited to 'client/go/Makefile')
-rw-r--r-- | client/go/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
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 |