summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2011-09-08 08:00:50 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2011-09-08 08:00:50 +0000
commit51469b1efae14382e40df794d0e09ef339f30d70 (patch)
tree164d450b7f40fd47c7d5da8abc2482ef48befb09
parentfcdd2276b91dc500e22d134c31b4ca8c69b737a0 (diff)
smarter path handling
git-svn-id: svn://tug.org/texlive/trunk@23872 c570f23f-e606-0410-a88d-b1316a301751
-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%"