Skip to content

Commit

Permalink
Merge pull request #964 from spacewander/bro
Browse files Browse the repository at this point in the history
git-browse/browse-ci: use powershell.exe only when it is available
  • Loading branch information
spacewander authored Apr 22, 2022
2 parents 716459f + d17f029 commit 6bf2b0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/git-browse
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/git-browse-ci
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bf2b0b

Please sign in to comment.