Skip to content

Commit 1ccede4

Browse files
author
Oryan M
committed
Fix get version command
1 parent 77a98c0 commit 1ccede4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -ev
33

44
getVersion() {
5-
grep -m1 -o '[^<>]*-SNAPSHOT' pom.xml
5+
grep -m1 -o "<version>.*</version>$" pom.xml | awk -F'[><]' '{print $3}'
66
}
77

88
removeSnapshots() {

0 commit comments

Comments
 (0)