mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge pull request #964 from spacewander/bro
git-browse/browse-ci: use powershell.exe only when it is available
This commit is contained in:
commit
6bf2b0bc4c
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue