update paths and fix issues in _updatePublisher.sh
This commit is contained in:
parent
1b27ec6d39
commit
d45095f26a
@ -9,7 +9,7 @@ if ! type "curl" > /dev/null; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
publisher="$input_cache_dir$publisher_jar"
|
publisher="$input_cache_path$publisher_jar"
|
||||||
if test -f "$publisher"; then
|
if test -f "$publisher"; then
|
||||||
echo "IG Publisher FOUND in input-cache"
|
echo "IG Publisher FOUND in input-cache"
|
||||||
jarlocation="$publisher"
|
jarlocation="$publisher"
|
||||||
@ -25,21 +25,21 @@ else
|
|||||||
upgrade=true
|
upgrade=true
|
||||||
else
|
else
|
||||||
echo IG Publisher NOT FOUND in input-cache or parent folder...
|
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"
|
jarlocationname="Input Cache"
|
||||||
upgrade=false
|
upgrade=false
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $upgrade ; then
|
if "$upgrade"; then
|
||||||
message="Overwrite $jarlocation? [Y/N] "
|
message="Overwrite $jarlocation?"
|
||||||
else
|
else
|
||||||
echo Will place publisher jar here: $input_cache_path$publisher_jar
|
echo Will place publisher jar here: "$jarlocation"
|
||||||
message="Ok? [Y/N] "
|
message="Ok?"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -r -p $message response
|
read -r -p "$message" response
|
||||||
if [[ "$response" =~ ^([yY])$ ]] then
|
if [[ "$response" =~ ^([yY])$ ]]; then
|
||||||
echo "Downloading most recent publisher to $jarlocationname - it's ~100 MB, so this may take a bit"
|
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"
|
# wget "https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar" -O "$jarlocation"
|
||||||
curl $dlurl -o "$jarlocation" --create-dirs
|
curl $dlurl -o "$jarlocation" --create-dirs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user