Merge pull request #12 from jafeltra/minor-script-updates

Minor updates to IG scripts
This commit is contained in:
Lloyd McKenzie
2020-03-26 09:23:43 -06:00
committed by GitHub
5 changed files with 7 additions and 7 deletions

View File

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

View File

@@ -1,2 +1,2 @@
#!/bin/bash #!/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/ input_cache_path=./input-cache/
set -e set -e
echo Checking internet connection... echo Checking internet connection...
wget -q --spider tx.fhir.org curl -sSf tx.fhir.org > /dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "Online" echo "Online"

View File

@@ -27,7 +27,7 @@ IF NOT EXIST "%input_cache_path%%publisher_jar%" (
:create :create
ECHO Will place publisher jar here: %input_cache_path%%publisher_jar% ECHO Will place publisher jar here: %input_cache_path%%publisher_jar%
SET /p create="Ok? (Y/N)" SET /p create="Ok? (Y/N) "
IF /I "%create%"=="Y" ( IF /I "%create%"=="Y" (
MKDIR "%input_cache_path%" 2> NUL MKDIR "%input_cache_path%" 2> NUL
GOTO:download GOTO:download
@@ -35,7 +35,7 @@ IF /I "%create%"=="Y" (
GOTO:done GOTO:done
:upgrade :upgrade
SET /p overwrite="Overwrite %jarlocation%? (Y/N)" SET /p overwrite="Overwrite %jarlocation%? (Y/N) "
IF /I "%overwrite%"=="Y" ( IF /I "%overwrite%"=="Y" (
GOTO:download GOTO:download
) )

View File

@@ -32,10 +32,10 @@ else
fi fi
if "$upgrade"; then if "$upgrade"; then
message="Overwrite $jarlocation?" message="Overwrite $jarlocation? (Y/N) "
else else
echo Will place publisher jar here: "$jarlocation" echo Will place publisher jar here: "$jarlocation"
message="Ok?" message="Ok? (Y/N) "
fi fi
read -r -p "$message" response read -r -p "$message" response