From f02bf9b72b4dab36f923a03f1c86c157f121fe17 Mon Sep 17 00:00:00 2001 From: idk Date: Thu, 17 Nov 2022 22:07:55 -0500 Subject: [PATCH] quote %JAVA% in eepget.bat script on Windows to prevent paths from splitting. Closes 31 on i2p.www, which was mis-filed --- installer/resources/eepget.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/resources/eepget.bat b/installer/resources/eepget.bat index 5d829c465..944a0b495 100644 --- a/installer/resources/eepget.bat +++ b/installer/resources/eepget.bat @@ -71,14 +71,14 @@ if not defined JAVA (set JAVA="%JAVA_PATH%\bin\java.exe") :eepget :: -:: The binary in %JAVA% should exist, assuming it was set by us. Perhaps it +:: The binary in "%JAVA%" should exist, assuming it was set by us. Perhaps it :: won't if the user specified it manually. Let's check to be sure. :: -if not exist %JAVA% ( - echo. Could not find %JAVA%. Please ensure that the variable JAVA +if not exist "%JAVA%" ( + echo. Could not find "%JAVA%". Please ensure that the variable JAVA echo. refers to a path that exists. goto end ) -%JAVA% -cp "%_I2PHOME%\lib\i2p.jar" net.i2p.util.EepGet %1 %2 %3 %4 %5 +"%JAVA%" -cp "%_I2PHOME%\lib\i2p.jar" net.i2p.util.EepGet %1 %2 %3 %4 %5 :end