Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix liquibase bat #4985

Merged
merged 2 commits into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions liquibase-dist/src/main/archive/liquibase.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ rem remove quotes around LIQUIBASE_HOME
set LIQUIBASE_HOME=%LIQUIBASE_HOME:"=%

rem remove quotes around JAVA_HOME if set
if NOT "%JAVA_HOME%" == "" set JAVA_HOME=%JAVA_HOME:"=%
if DEFINED JAVA_HOME if NOT JAVA_HOME == "" set JAVA_HOME=%JAVA_HOME:"=%

rem set JAVA_HOME to local jre dir if not set
if exist "%LIQUIBASE_HOME%\jre" if "%JAVA_HOME%"=="" (
set JAVA_HOME=%LIQUIBASE_HOME%\jre
set JAVA_HOME="%LIQUIBASE_HOME%jre"

rem remove quotes around JAVA_HOME
set JAVA_HOME=!JAVA_HOME:"=!
)

if NOT "%JAVA_HOME%" == "" if not exist "%JAVA_HOME%" (
Expand Down