Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sofiane Bendoukha
ssh_scripts
Commits
a95271ce
Commit
a95271ce
authored
Apr 18, 2019
by
Mathis Rosenhauer
Browse files
start-jupyter: support older versions of bash
parent
9017d967
Changes
1
Hide whitespace changes
Inline
Side-by-side
start-jupyter
View file @
a95271ce
...
...
@@ -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
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment