Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

Update Makefile

tison1c5297abf1e0
diff --git a/Makefile b/Makefile
index 2a2ccfc1..6750d95d 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ DIR_SRC=./cmd/answer
DOCKER_CMD=docker
GO_ENV=CGO_ENABLED=0 GO111MODULE=on
-Revision=$(shell git rev-parse --short HEAD 2&>/dev/null || echo "")
+Revision=$(shell git rev-parse --short HEAD 2>/dev/null || echo "")
GO_FLAGS=-ldflags="-X github.com/apache/incubator-answer/cmd.Version=$(VERSION) -X 'github.com/apache/incubator-answer/cmd.Revision=$(Revision)' -X 'github.com/apache/incubator-answer/cmd.Time=`date +%s`' -extldflags -static"
GO=$(GO_ENV) $(shell which go)