Detect WSL case insensitively

My `uname -r` is `4.19.81-microsoft-standard`
This commit is contained in:
Víctor 2019-11-26 10:54:37 +01:00 committed by GitHub
parent fcbbf918f7
commit ad8fac9309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -256,7 +256,7 @@ case $( uname -s ) in
MSYS*) open='start';;
CYGWIN*) open='cygstart';;
*) # Try to detect WSL (Windows Subsystem for Linux)
if uname -r | grep -q Microsoft; then
if uname -r | grep -q -i Microsoft; then
open='powershell.exe Start'
else
open='xdg-open'