Fix logic in _updatePublisher.bat
This commit is contained in:
parent
ddc28941e5
commit
bd52990cc5
@ -14,7 +14,7 @@ set gencont_sh_url=https://raw.githubusercontent.com/FHIR/sample-ig/master/_genc
|
|||||||
set gen_sh_url=https://raw.githubusercontent.com/FHIR/sample-ig/master/_genonce.sh
|
set gen_sh_url=https://raw.githubusercontent.com/FHIR/sample-ig/master/_genonce.sh
|
||||||
set update_sh_url=https://raw.githubusercontent.com/FHIR/sample-ig/master/_updatePublisher.sh
|
set update_sh_url=https://raw.githubusercontent.com/FHIR/sample-ig/master/_updatePublisher.sh
|
||||||
|
|
||||||
IF "%~1"=="/f" SET skipPrompts=true
|
IF "%~1"=="/f" SET skipPrompts=y
|
||||||
|
|
||||||
|
|
||||||
ECHO.
|
ECHO.
|
||||||
@ -65,21 +65,21 @@ IF DEFINED FORCE (
|
|||||||
GOTO download
|
GOTO download
|
||||||
)
|
)
|
||||||
|
|
||||||
IF "%skipPrompts%"=="true" (
|
IF "%skipPrompts%"=="y" (
|
||||||
SET create="Y"
|
SET create=Y
|
||||||
) ELSE (
|
) ELSE (
|
||||||
SET /p create="Ok? (Y/N) "
|
SET /p create="Ok? (Y/N) "
|
||||||
)
|
)
|
||||||
IF /I "%create%"=="Y" (
|
IF /I "%create%"=="Y" (
|
||||||
ECHO Will place publisher jar here: %input_cache_path%%publisher_jar%
|
ECHO Will place publisher jar here: %input_cache_path%%publisher_jar%
|
||||||
MKDIR "%input_cache_path%" 2> NUL
|
MKDIR "%input_cache_path%" 2> NUL
|
||||||
GOTO download
|
GOTO download
|
||||||
)
|
)
|
||||||
GOTO done
|
GOTO done
|
||||||
|
|
||||||
:upgrade
|
:upgrade
|
||||||
IF "%skipPrompts%"=="true" (
|
IF "%skipPrompts%"=="y" (
|
||||||
SET overwrite="Y"
|
SET overwrite=Y
|
||||||
) ELSE (
|
) ELSE (
|
||||||
SET /p overwrite="Overwrite %jarlocation%? (Y/N) "
|
SET /p overwrite="Overwrite %jarlocation%? (Y/N) "
|
||||||
)
|
)
|
||||||
@ -132,8 +132,8 @@ GOTO done
|
|||||||
|
|
||||||
ECHO.
|
ECHO.
|
||||||
ECHO Updating scripts
|
ECHO Updating scripts
|
||||||
IF "%skipPrompts%"=="true" (
|
IF "%skipPrompts%"=="y" (
|
||||||
SET updateScripts="Y"
|
SET updateScripts=Y
|
||||||
) ELSE (
|
) ELSE (
|
||||||
SET /p updateScripts="Update scripts? (Y/N) "
|
SET /p updateScripts="Update scripts? (Y/N) "
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user