Last active
October 16, 2019 11:46
-
-
Save mkjsix/81d0d92f773e2a048149bb97d3103aa4 to your computer and use it in GitHub Desktop.
Extract the POM version from JAR file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VERSION=$(unzip -q -c "$1" META-INF/MANIFEST.MF | grep "Implementation-Version:" | awk '{print $2}' | sed 's/["\n\r]//g') | |
printf "%s" "$VERSION" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment