diff options
author | Piotr Strzelczyk <piotr@eps.gda.pl> | 2011-09-08 08:00:50 +0000 |
---|---|---|
committer | Piotr Strzelczyk <piotr@eps.gda.pl> | 2011-09-08 08:00:50 +0000 |
commit | 51469b1efae14382e40df794d0e09ef339f30d70 (patch) | |
tree | 164d450b7f40fd47c7d5da8abc2482ef48befb09 | |
parent | fcdd2276b91dc500e22d134c31b4ca8c69b737a0 (diff) |
smarter path handling
git-svn-id: svn://tug.org/texlive/trunk@23872 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/tlpkg/installer/tl-cmd.bat | 5 |
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%" |