diff options
-rwxr-xr-x | Master/install-tl.bat | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/install-tl.bat b/Master/install-tl.bat index 1b7642bdf5e..c47e93d4345 100755 --- a/Master/install-tl.bat +++ b/Master/install-tl.bat @@ -20,9 +20,10 @@ cd /d %~dp0 rem Break search path into dir list and rebuild w/o tex dirs
call :rebuildpath ";" "%path:;=" "%"
+if "%path:~0,1%"==";" set path=%path:~1%
rem Use TL Perl
-path %~dp0tlpkg\tlperl\bin;%path%
+set path=%~dp0tlpkg\tlperl\bin;%path%
set PERL5LIB=%~dp0tlpkg\tlperl\lib
rem Start installer
@@ -42,7 +43,7 @@ if [%1]==[] goto :eof rem Continue if tex dir
if exist "%~1\pdftex.exe" goto :rebuildpath
rem Add dir to path
-if not defined path (path %~1) else (path %path%;%~1)
+set path=%path%;%~1
goto :rebuildpath
rem About install-tl.bat.manifest:
|