1
0
mirror of https://github.com/mintty/wsltty.git synced 2025-01-18 12:05:47 +00:00

ensure tool availability if called from cmd or shortcut (#75)

This commit is contained in:
mintty 2017-12-06 22:57:29 +01:00
parent be761f3aab
commit 36a39d99de

View File

@ -1,5 +1,7 @@
#! /bin/sh
PATH=/bin:$PATH
contextmenu=false
remove=false
alldistros=true
@ -85,7 +87,8 @@ echoc () {
cmd /c echo $*
}
while read line; do echo "$line"; done <</EOB > mkbat.bat
if $config
then while read line; do echo "$line"; done <</EOB > mkbat.bat
@echo off
echo Creating %1.bat
@ -93,6 +96,7 @@ echo @echo off> %1.bat
echo rem Start mintty terminal for WSL package %name% in current directory>> %1.bat
echo %target% -i "%icon%" %minttyargs% %bridgeargs%>> %1.bat
/EOB
fi
PATH=/bin:$PATH