Make grep in Cygwin path-stripping code case-sensitive for consistency

The previous "case" check already is case-sensitive, so there is no point
in making grep case-insensitive.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
This commit is contained in:
Sebastian Schuberth 2012-10-29 22:29:49 +01:00
Родитель 133e29c426
Коммит b4546cc621
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -24,7 +24,7 @@ fi
# strip out cygwin paths from PATH
case "$PATH" in
*/cygwin/*)
export PATH=$(p=$(echo $PATH | tr ":" "\n" | grep -vi "/cygwin/" | tr "\n" ":"); echo ${p%:})
export PATH=$(p=$(echo $PATH | tr ":" "\n" | grep -v "/cygwin/" | tr "\n" ":"); echo ${p%:})
;;
esac