Cleaned up launch scripts
This commit is contained in:
26
_genonce.sh
26
_genonce.sh
@@ -1,27 +1,29 @@
|
||||
#!/bin/bash
|
||||
publisher_jar=org.hl7.fhir.publisher.jar
|
||||
input_cache_path=./input-cache/
|
||||
set -e
|
||||
echo Checking internet connection...
|
||||
wget -q --spider tx.fhir.org
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Online"
|
||||
txoption=""
|
||||
echo "Online"
|
||||
txoption=""
|
||||
else
|
||||
echo "Offline"
|
||||
txoption="-tx n/a"
|
||||
echo "Offline"
|
||||
txoption="-tx n/a"
|
||||
fi
|
||||
|
||||
echo "$txoption"
|
||||
|
||||
publisher=./input-cache/org.hl7.fhir.publisher.jar
|
||||
publisher=$input_cache_path/$publisher_jar
|
||||
if test -f "$publisher"; then
|
||||
JAVA -jar ./input-cache/org.hl7.fhir.publisher.jar -ig ig.ini $txoption
|
||||
JAVA -jar $publisher -ig ig.ini $txoption
|
||||
|
||||
else
|
||||
publisher=../org.hl7.fhir.publisher.jar
|
||||
if test -f "$publisher"; then
|
||||
JAVA -jar ../org.hl7.fhir.publisher.jar -ig ig.ini $txoption
|
||||
else
|
||||
echo IG Publisher NOT FOUND in input-cache or parent folder... aborting
|
||||
fi
|
||||
publisher=../$publisher_jar
|
||||
if test -f "$publisher"; then
|
||||
JAVA -jar $publisher -ig ig.ini $txoption
|
||||
else
|
||||
echo IG Publisher NOT FOUND in input-cache or parent folder... aborting
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user