mirror of
https://github.com/mintty/wsltty.git
synced 2025-04-19 09:10:31 +01:00
ensure tool availability if called from cmd or shortcut (#75)
This commit is contained in:
parent
be761f3aab
commit
36a39d99de
@ -1,5 +1,7 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
|
PATH=/bin:$PATH
|
||||||
|
|
||||||
contextmenu=false
|
contextmenu=false
|
||||||
remove=false
|
remove=false
|
||||||
alldistros=true
|
alldistros=true
|
||||||
@ -85,7 +87,8 @@ echoc () {
|
|||||||
cmd /c echo $*
|
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 off
|
||||||
echo Creating %1.bat
|
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 rem Start mintty terminal for WSL package %name% in current directory>> %1.bat
|
||||||
echo %target% -i "%icon%" %minttyargs% %bridgeargs%>> %1.bat
|
echo %target% -i "%icon%" %minttyargs% %bridgeargs%>> %1.bat
|
||||||
/EOB
|
/EOB
|
||||||
|
fi
|
||||||
|
|
||||||
PATH=/bin:$PATH
|
PATH=/bin:$PATH
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user