From 1a38b8438959ab8f023a7a573163efdbd8acad66 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 14 Aug 2019 17:11:27 +0100 Subject: [PATCH] [FABN-1320] Remove sed from git_tag.sh script gsed command may not be installed and sed is not required Change-Id: Ie0ba226182ad23152b6e43a70d20941b8f397a8a Signed-off-by: James Taylor --- scripts/gittag.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gittag.sh b/scripts/gittag.sh index 1c408980..c41fd806 100755 --- a/scripts/gittag.sh +++ b/scripts/gittag.sh @@ -18,7 +18,7 @@ function abort { } # Run printVersionName task in the root directory, grab the first line and remove anything after the version number -VERSION=$(cd ../ && ./gradlew -q printVersionName | gsed -n 1p | gsed -r "s/-.*//") +VERSION=$(cd ../ && ./gradlew -q printVersionName | head -n 1 | cut -d'-' -f1) echo New version string will be v${VERSION}