Detect WSL case insensitively (#158)

Detect WSL case insensitively
This commit is contained in:
Dave Wikoff 2019-12-22 13:32:17 -05:00 committed by GitHub
commit 849298fece
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';; MSYS*) open='start';;
CYGWIN*) open='cygstart';; CYGWIN*) open='cygstart';;
*) # Try to detect WSL (Windows Subsystem for Linux) *) # 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' open='powershell.exe Start'
else else
open='xdg-open' open='xdg-open'