Last active
August 19, 2016 19:58
-
-
Save grant-humphries/abab7486265d40acb29d30797f8a8607 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/install.bat b/install.bat | |
index 6a3c4bc..57636de 100755 | |
--- a/install.bat | |
+++ b/install.bat | |
@@ -5,8 +5,8 @@ set SCRIPT_PATH=%~dp0 | |
set SCRIPT_PATH=%SCRIPT_PATH:\=/% | |
set CUSTOM=false | |
set INSTALLER_PATH= | |
-set BABUN_ZIP=%SCRIPT_PATH%/dist/babun.zip | |
-set UNZIPPER=%SCRIPT_PATH%/dist/unzip.exe | |
+set BABUN_ZIP=%SCRIPT_PATH%dist/babun.zip | |
+set UNZIPPER=%SCRIPT_PATH%dist/unzip.exe | |
set FREESPACE_SCRIPT=%SCRIPT_PATH%/dist/freespace.vbs | |
set LOG_FILE=%SCRIPT_PATH%/installer.log | |
@@ -46,7 +46,7 @@ rem NOTHING FOR NOW | |
:CHECKFREESPACE | |
set DRIVE_LETTER=%BABUN_HOME:~0,2% | |
FOR /F "usebackq tokens=*" %%r in (`cscript //Nologo "%FREESPACE_SCRIPT%" "%DRIVE_LETTER%"`) DO SET FREE_SPACE=%%r | |
-if %FREE_SPACE% lss 1024 ( | |
+if !FREE_SPACE! lss 1024 ( | |
ECHO [babun] ERROR: There is not enough space on your destination drive %DRIVE_LETTER% | |
ECHO [babun] ERROR: Babun requires at least 1024 MB to operate properly | |
ECHO [babun] ERROR: Free Space on %DRIVE_LETTER% %FREE_SPACE% MB | |
@@ -94,7 +94,7 @@ if exist "%BABUN_HOME%/*.*" ( | |
if not exist "%BABUN_HOME%" (mkdir "%BABUN_HOME%" || goto :ERROR) | |
ECHO [babun] Unzipping | |
-"%UNZIPPER%" "%BABUN_ZIP%" -d "%TARGET%" | |
+"%UNZIPPER%" "%BABUN_ZIP%" -d %TARGET% | |
if not exist "%BABUN_HOME%/*.*" (GOTO ERROR) | |
:POSTINSTALL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I needed to make these changes for the babun (1.2.0) install script to work for me on Windows 10 with the following command:
install.bat /t "C:\"