Merge branch 'master' into patch-1

This commit is contained in:
Lloyd McKenzie 2020-04-03 13:39:23 -06:00 committed by GitHub
commit 1b65c0d9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 12 deletions

View File

@ -1,2 +1,2 @@
@ECHO OFF
CALL _genonce.bat -watch
CALL ./_genonce.bat -watch

View File

@ -1,2 +1,2 @@
#!/bin/bash
_genonce.sh -watch
./_genonce.sh -watch

View File

@ -3,7 +3,7 @@ publisher_jar=org.hl7.fhir.publisher.jar
input_cache_path=./input-cache/
set -e
echo Checking internet connection...
wget -q --spider tx.fhir.org
curl -sSf tx.fhir.org > /dev/null
if [ $? -eq 0 ]; then
echo "Online"

View File

@ -9,6 +9,20 @@ if ! type "curl" > /dev/null; then
exit 1
fi
FORCE=false
while :; do
case $1 in
-f|--force) FORCE=true ;;
--)
shift
break
;;
*) break
esac
shift
done
publisher="$input_cache_path$publisher_jar"
if test -f "$publisher"; then
echo "IG Publisher FOUND in input-cache"
@ -31,15 +45,17 @@ else
fi
fi
if [[ "$FORCE" != true ]]; then
if "$upgrade"; then
message="Overwrite $jarlocation?"
message="Overwrite $jarlocation? (Y/N) "
else
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
if [[ "$response" =~ ^([yY])$ ]]; then
fi
if [[ "$FORCE" ]] || [[ "$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