diff --git a/scripts/nanopub-java b/scripts/nanopub-java index cd4c386..f555bc9 100755 --- a/scripts/nanopub-java +++ b/scripts/nanopub-java @@ -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" }