Merge branch 'master' of https://github.com/FHIR/sample-ig
This commit is contained in:
commit
901ecfea9c
@ -9,6 +9,20 @@ if ! type "curl" > /dev/null; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
FORCE=false
|
||||||
|
|
||||||
|
while :; do
|
||||||
|
case $1 in
|
||||||
|
-f|--force) FORCE=true ;;
|
||||||
|
--)
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
*) break
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
publisher="$input_cache_path$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"
|
||||||
@ -31,15 +45,17 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if "$upgrade"; then
|
if [[ "$FORCE" != true ]]; then
|
||||||
message="Overwrite $jarlocation? (Y/N) "
|
if "$upgrade"; then
|
||||||
else
|
message="Overwrite $jarlocation? (Y/N) "
|
||||||
echo Will place publisher jar here: "$jarlocation"
|
else
|
||||||
message="Ok? (Y/N) "
|
echo Will place publisher jar here: "$jarlocation"
|
||||||
|
message="Ok (enter 'y' or 'Y' to continue, any other key to cancel)?"
|
||||||
|
fi
|
||||||
|
read -r -p "$message" response
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -r -p "$message" response
|
if [[ "$FORCE" ]] || [[ "$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