Added possibility to use jar in parent folder besides input-cache; offline publishing option;
This commit is contained in:
26
_genonce.sh
26
_genonce.sh
@@ -1,3 +1,27 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
java -jar input-cache/org.hl7.fhir.publisher.jar -ig ig.ini
|
||||
echo Checking internet connection...
|
||||
wget -q --spider tx.fhir.org
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Online"
|
||||
txoption=""
|
||||
else
|
||||
echo "Offline"
|
||||
txoption="-tx n/a"
|
||||
fi
|
||||
|
||||
echo "$txoption"
|
||||
|
||||
publisher=./input-cache/org.hl7.fhir.publisher.jar
|
||||
if test -f "$publisher"; then
|
||||
JAVA -jar ./input-cache/org.hl7.fhir.publisher.jar -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
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user