Skip to content

Commit 26f4336

Browse files
committed
Merge pull request #14 from nouiz/master
Safer run.sh. Make sure no name collosion can happen on other platform
2 parents 262bfc0 + 4250aa1 commit 26f4336

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

run.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ get_host() {
3333

3434
get_host host_result
3535

36-
open() {
36+
myopen() {
3737
if [ $host_result = "GNU/Linux" ]; then
3838
xdg-open $1
3939
else
@@ -46,19 +46,19 @@ case "$1" in
4646
echo "Please input your GraphLab Create product key:"
4747
read GRAPHLAB_PRODUCT_KEY
4848
docker run -e "GRAPHLAB_PRODUCT_KEY=$GRAPHLAB_PRODUCT_KEY" -d -p 8997:8997 startupml/graphlab
49-
sleep 2 && open http://localhost:8997
49+
sleep 2 && myopen http://localhost:8997
5050
;;
5151
h2o)
5252
docker run -d -p 8996:8996 startupml/h2o
53-
sleep 3 && open http://localhost:8996
53+
sleep 3 && myopen http://localhost:8996
5454
;;
5555
julia)
5656
docker run -d -p 8998:8998 startupml/julia
57-
sleep 2 && open http://localhost:8998
57+
sleep 2 && myopen http://localhost:8998
5858
;;
5959
theano)
6060
docker run -d -p 8999:8999 startupml/theano
61-
sleep 2 && open http://localhost:8999
61+
sleep 2 && myopen http://localhost:8999
6262
;;
6363
vw)
6464
docker run -it --rm startupml/vowpal_wabbit vw

0 commit comments

Comments
 (0)