From f208307cbdd403d3fa92a1aae1dc9c094c7ec9d8 Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Wed, 11 Jul 2012 10:43:37 -0700 Subject: Bringing in upstream changes --- serve.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'serve.sh') diff --git a/serve.sh b/serve.sh index 9663bad..f2692fe 100755 --- a/serve.sh +++ b/serve.sh @@ -12,4 +12,11 @@ then port=8000 fi -open http://localhost:$port/template.html && python -m SimpleHTTPServer $port; +if [ $(uname -s) == "Darwin" ] +then + open=open +else + open=xdg-open +fi + +$open http://localhost:$port/template.html && python -m SimpleHTTPServer $port; -- cgit v1.2.3