Skip to content

Commit 1a38b84

Browse files
committed
[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 <[email protected]>
1 parent 61be267 commit 1a38b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gittag.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function abort {
1818
}
1919

2020
# Run printVersionName task in the root directory, grab the first line and remove anything after the version number
21-
VERSION=$(cd ../ && ./gradlew -q printVersionName | gsed -n 1p | gsed -r "s/-.*//")
21+
VERSION=$(cd ../ && ./gradlew -q printVersionName | head -n 1 | cut -d'-' -f1)
2222

2323
echo New version string will be v${VERSION}
2424

0 commit comments

Comments
 (0)