Skip to content

Commit

Permalink
Adjusted script
Browse files Browse the repository at this point in the history
  • Loading branch information
dschiese committed Oct 13, 2023
1 parent 1605d71 commit 8630ff9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extract_version.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
cd target
JAR_FILE=$(find . -maxdepth 1 -type f -name "*.jar")
export JAR_VERSION=$(echo "$JAR_FILE" | grep -oP 'java-\K[\d.]+')
export JAR_VERSION=$(echo "$JAR_FILE" | grep -oP 'java-\K[\d.]+')

echo JAR_VERSION

0 comments on commit 8630ff9

Please sign in to comment.