From 8e982d2479ad1b11b76cd7735c4c295a23fe2095 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Thu, 9 Mar 2017 21:28:50 +0300 Subject: [PATCH] if a version is not found, set it as unknown; do not display No names found error message --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c4d21dc28..78c3e71f6 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ GLIDE := $(shell command -v glide 2>/dev/null) PROTOC := $(shell command -v protoc 2>/dev/null) -VERSION := $(shell git describe --tags) +VERSION := $(shell git describe --tags 2> /dev/null || echo unknown) IDENTIFIER := $(VERSION)-$(GOOS)-$(GOARCH) CLONE_URL=github.com/pilosa/pilosa BUILD_TIME=`date -u +%FT%T%z`