summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMaster/install-tl.bat13
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/install-tl.bat b/Master/install-tl.bat
index c47e93d4345..d40865a9561 100755
--- a/Master/install-tl.bat
+++ b/Master/install-tl.bat
@@ -16,15 +16,18 @@ rem Localize environment changes
setlocal enableextensions
rem Do we really need to cd to the batch location?
-cd /d %~dp0
+cd /d "%~dp0"
+
+rem Remove any double quotes from PATH (why we care for it at all???)
+set "path=%path:"=%"
rem Break search path into dir list and rebuild w/o tex dirs
call :rebuildpath ";" "%path:;=" "%"
-if "%path:~0,1%"==";" set path=%path:~1%
+if "%path:~0,1%"==";" set "path=%path:~1%"
rem Use TL Perl
-set path=%~dp0tlpkg\tlperl\bin;%path%
-set PERL5LIB=%~dp0tlpkg\tlperl\lib
+set "path=%~dp0tlpkg\tlperl\bin;%path%"
+set "PERL5LIB=%~dp0tlpkg\tlperl\lib"
rem Start installer
path
@@ -43,7 +46,7 @@ if [%1]==[] goto :eof
rem Continue if tex dir
if exist "%~1\pdftex.exe" goto :rebuildpath
rem Add dir to path
-set path=%path%;%~1
+set "path=%path%;%~1"
goto :rebuildpath
rem About install-tl.bat.manifest: