Commit a95271ce authored by Mathis Rosenhauer's avatar Mathis Rosenhauer

start-jupyter: support older versions of bash

parent 9017d967
......@@ -319,11 +319,14 @@ function launch_browser() {
open "${url}" || show_url "${url}"
;;
Linux)
if [[ "$(uname -a)" == *@(Microsoft|WSL)* ]]; then
cmd.exe /c start "${url}" || show_url "${url}"
else
xdg-open "${url}" || show_url "${url}"
fi
case "$(uname -a)" in
*Microsoft*|*WSL*)
cmd.exe /c start "${url}" || show_url "${url}"
;;
*)
xdg-open "${url}" || show_url "${url}"
;;
esac
;;
*)
show_url "${url}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment