diff --git a/build/ldflags.sh b/build/ldflags.sh index 9e17ca4986..25afdb2d15 100755 --- a/build/ldflags.sh +++ b/build/ldflags.sh @@ -9,5 +9,5 @@ fi # set gitCommit when running from a Git checkout. if [ -f ".git/HEAD" ]; then - echo "-ldflags '-X main.gitCommit $(git rev-parse HEAD)'" + echo "-ldflags '-X main.gitCommit=$(git rev-parse HEAD)'" fi