From 36a39d99de0cf08cec062e066f010f87ed0aefd7 Mon Sep 17 00:00:00 2001 From: mintty Date: Wed, 6 Dec 2017 22:57:29 +0100 Subject: [PATCH] ensure tool availability if called from cmd or shortcut (#75) --- config-distros.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config-distros.sh b/config-distros.sh index 04f7ffb..61ba033 100755 --- a/config-distros.sh +++ b/config-distros.sh @@ -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 < mkbat.bat +if $config +then while read line; do echo "$line"; done < 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