Skip to content

Commit ad8fac9

Browse files
authored
Detect WSL case insensitively
My `uname -r` is `4.19.81-microsoft-standard`
1 parent fcbbf91 commit ad8fac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-open

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ case $( uname -s ) in
256256
MSYS*) open='start';;
257257
CYGWIN*) open='cygstart';;
258258
*) # Try to detect WSL (Windows Subsystem for Linux)
259-
if uname -r | grep -q Microsoft; then
259+
if uname -r | grep -q -i Microsoft; then
260260
open='powershell.exe Start'
261261
else
262262
open='xdg-open'

0 commit comments

Comments
 (0)