Skip to content

Commit

Permalink
make open_urls more portable
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbauer committed Sep 1, 2015
1 parent 162e19b commit d5e494b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions bootstrap/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,19 @@ get_master_url() {
open_urls() {
local master_url=$(get_master_url)

local open_cmd=""
if [ -a /usr/bin/open ]; then
/usr/bin/open "${master_url}:5050"
/usr/bin/open "${master_url}:8080"
/usr/bin/open "${master_url}:8500"
/usr/bin/open "${master_url}:4040"
/usr/bin/open "${master_url}:8081"
open_cmd=/usr/bin/open
elif [ -a /usr/bin/xdg-open ]; then
open_cmd=/usr/bin/xdg-open
fi

if [ -a ${open_cmd} ]; then
${open_cmd} "${master_url}:5050"
${open_cmd} "${master_url}:8080"
${open_cmd} "${master_url}:8500"
${open_cmd} "${master_url}:4040"
${open_cmd} "${master_url}:8081"
fi
}

Expand Down

0 comments on commit d5e494b

Please sign in to comment.