Merge pull request #21 from peturv/bug/shell-script-issues

Issues in shell scripts
This commit is contained in:
Lloyd McKenzie 2020-04-22 20:56:45 -06:00 committed by GitHub
commit 6aa1e4dcd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -16,12 +16,12 @@ echo "$txoption"
publisher=$input_cache_path/$publisher_jar publisher=$input_cache_path/$publisher_jar
if test -f "$publisher"; then if test -f "$publisher"; then
JAVA -jar $publisher -ig ig.ini $txoption $* java -jar $publisher -ig ig.ini $txoption $*
else else
publisher=../$publisher_jar publisher=../$publisher_jar
if test -f "$publisher"; then if test -f "$publisher"; then
JAVA -jar $publisher -ig ig.ini $txoption $* java -jar $publisher -ig ig.ini $txoption $*
else else
echo IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting... echo IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting...
fi fi

View File

@ -55,7 +55,7 @@ if [[ "$FORCE" != true ]]; then
read -r -p "$message" response read -r -p "$message" response
fi fi
if [[ "$FORCE" ]] || [[ "$response" =~ ^([yY])$ ]]; then if [[ "$FORCE" == true ]] || [[ "$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