From be50a1408b5f133623b6515f107cc9391c028e72 Mon Sep 17 00:00:00 2001 From: TeoV Date: Thu, 17 Aug 2017 05:54:39 -0400 Subject: [PATCH] Fix escaping characters on versioning --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 191adc414..60344abeb 100755 --- a/build.sh +++ b/build.sh @@ -1,8 +1,10 @@ #! /usr/bin/env sh echo "Building CGRateS ..." +GIT_LAST_LOG=$(git log -1 | tr -d "'") + +echo $GIT_LAST_LOG -GIT_LAST_LOG=$(git log -1) go install -ldflags "-X 'github.com/cgrates/cgrates/utils.GitLastLog=$GIT_LAST_LOG'" github.com/cgrates/cgrates/cmd/cgr-engine cr=$? go install -ldflags "-X 'github.com/cgrates/cgrates/utils.GitLastLog=$GIT_LAST_LOG'" github.com/cgrates/cgrates/cmd/cgr-loader