From d45095f26a6e7121555e44d25d64b9b8c3e53df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Costa=20Teixeira?= Date: Sat, 21 Dec 2019 23:56:26 +0100 Subject: [PATCH] update paths and fix issues in _updatePublisher.sh --- _updatePublisher.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/_updatePublisher.sh b/_updatePublisher.sh index be33d0f..7307202 100755 --- a/_updatePublisher.sh +++ b/_updatePublisher.sh @@ -9,7 +9,7 @@ if ! type "curl" > /dev/null; then exit 1 fi -publisher="$input_cache_dir$publisher_jar" +publisher="$input_cache_path$publisher_jar" if test -f "$publisher"; then echo "IG Publisher FOUND in input-cache" jarlocation="$publisher" @@ -25,21 +25,21 @@ else upgrade=true else echo IG Publisher NOT FOUND in input-cache or parent folder... - jarlocation="$input_cache_dir$publisher_jar" + jarlocation=$input_cache_path$publisher_jar jarlocationname="Input Cache" upgrade=false fi fi -if $upgrade ; then - message="Overwrite $jarlocation? [Y/N] " +if "$upgrade"; then + message="Overwrite $jarlocation?" else - echo Will place publisher jar here: $input_cache_path$publisher_jar - message="Ok? [Y/N] " + echo Will place publisher jar here: "$jarlocation" + message="Ok?" fi -read -r -p $message response -if [[ "$response" =~ ^([yY])$ ]] then +read -r -p "$message" response +if [[ "$response" =~ ^([yY])$ ]]; then echo "Downloading most recent publisher to $jarlocationname - it's ~100 MB, so this may take a bit" # wget "https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar" -O "$jarlocation" curl $dlurl -o "$jarlocation" --create-dirs