aboutsummaryrefslogtreecommitdiff
path: root/serve.sh
diff options
context:
space:
mode:
Diffstat (limited to 'serve.sh')
-rwxr-xr-xserve.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/serve.sh b/serve.sh
index 9663bad..f2692fe 100755
--- a/serve.sh
+++ b/serve.sh
@@ -12,4 +12,11 @@ then
12 port=8000 12 port=8000
13fi 13fi
14 14
15open http://localhost:$port/template.html && python -m SimpleHTTPServer $port; 15if [ $(uname -s) == "Darwin" ]
16then
17 open=open
18else
19 open=xdg-open
20fi
21
22$open http://localhost:$port/template.html && python -m SimpleHTTPServer $port;