Skip to content

Commit

Permalink
Merge pull request #165 from vemonet/fix-nanopub-jar-version
Browse files Browse the repository at this point in the history
Fix nanopub-java version to 1.47
  • Loading branch information
raar1 authored Jan 31, 2024
2 parents f0fba19 + b8cecc9 commit aadd39f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/nanopub-java
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ set -e

function download-nanopub-jar {
mkdir -p $LIBDIR
echo "Getting latest nanopub version..."
NANOPUB_LATEST_LOCATION=$(
curl --head -s https://github.com/Nanopublication/nanopub-java/releases/latest \
| egrep -i '^location:'
)
NANOPUB_VERSION=${NANOPUB_LATEST_LOCATION##*-}
NANOPUB_VERSION="${NANOPUB_VERSION%"${NANOPUB_VERSION##*[![:space:]]}"}"
# NANOPUB_VERSION=1.38
# echo "Getting latest nanopub version..."
# NANOPUB_LATEST_LOCATION=$(
# curl --head -s https://github.com/Nanopublication/nanopub-java/releases/latest \
# | egrep -i '^location:'
# )
# NANOPUB_VERSION=${NANOPUB_LATEST_LOCATION##*-}
# NANOPUB_VERSION="${NANOPUB_VERSION%"${NANOPUB_VERSION##*[![:space:]]}"}"
NANOPUB_VERSION=1.47
echo "Downloading nanopub jar file version $NANOPUB_VERSION in $LIBDIR/nanopub-${NANOPUB_VERSION}-jar-with-dependencies.jar"
curl -L --output "$LIBDIR/nanopub-${NANOPUB_VERSION}-jar-with-dependencies.jar" "https://github.com/Nanopublication/nanopub-java/releases/download/nanopub-${NANOPUB_VERSION}/nanopub-${NANOPUB_VERSION}-jar-with-dependencies.jar"
}
Expand Down

0 comments on commit aadd39f

Please sign in to comment.