summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMaster/tlpkg/installer/tl-cmd.bat5
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/tlpkg/installer/tl-cmd.bat b/Master/tlpkg/installer/tl-cmd.bat
index ef6be8b68ae..df502d5063e 100755
--- a/Master/tlpkg/installer/tl-cmd.bat
+++ b/Master/tlpkg/installer/tl-cmd.bat
@@ -8,5 +8,8 @@ rem Public domain
@echo off
setlocal enableextensions
-for %%I in ("%~dp0..\..\bin\win32") do set "PATH=%%~fI;%PATH%"
+rem Add bin dir to beginning of PATH only if it is not already there
+for /f "tokens=1,2 delims=;" %%I in ("%~dp0..\..\bin\win32;%PATH%") do if not "%%~fI"=="%%~fJ" set "PATH=%%~fI;%PATH%"
+
+rem Start new console
start "TeX Live 2011" "%COMSPEC%"