diff --git a/bin/git-browse b/bin/git-browse index 4acab8181..830254306 100755 --- a/bin/git-browse +++ b/bin/git-browse @@ -40,7 +40,7 @@ case "$OSTYPE" in ;; linux*) # Handle WSL on Windows - if uname -a | grep -i -q Microsoft + if uname -a | grep -i -q Microsoft && command -v powershell.exe then powershell.exe -NoProfile start $url else diff --git a/bin/git-browse-ci b/bin/git-browse-ci index 440c9ce60..1ffbed057 100755 --- a/bin/git-browse-ci +++ b/bin/git-browse-ci @@ -51,7 +51,7 @@ case "$OSTYPE" in ;; linux*) # Handle WSL on Windows - if uname -a | grep -i -q Microsoft + if uname -a | grep -i -q Microsoft && command -v powershell.exe then powershell.exe -NoProfile start "${ci_url}" else