Commit a95271ce authored by Mathis Rosenhauer's avatar Mathis Rosenhauer
Browse files

start-jupyter: support older versions of bash

parent 9017d967
...@@ -319,11 +319,14 @@ function launch_browser() { ...@@ -319,11 +319,14 @@ function launch_browser() {
open "${url}" || show_url "${url}" open "${url}" || show_url "${url}"
;; ;;
Linux) Linux)
if [[ "$(uname -a)" == *@(Microsoft|WSL)* ]]; then case "$(uname -a)" in
cmd.exe /c start "${url}" || show_url "${url}" *Microsoft*|*WSL*)
else cmd.exe /c start "${url}" || show_url "${url}"
xdg-open "${url}" || show_url "${url}" ;;
fi *)
xdg-open "${url}" || show_url "${url}"
;;
esac
;; ;;
*) *)
show_url "${url}" 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