From 877b198740a04a3dc9ab7cc2bf121c0e306bf0b3 Mon Sep 17 00:00:00 2001 From: Justin W. Flory Date: Jan 03 2019 20:54:44 +0000 Subject: Add workaround for --directory flag breaking in preview.sh script Closes #13. --- diff --git a/preview.sh b/preview.sh index aeed9f1..acc52af 100755 --- a/preview.sh +++ b/preview.sh @@ -13,5 +13,6 @@ elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then echo "" echo "The preview is available at http://localhost:8080" echo "" - python3 -m http.server --directory ./public 8080 + cd ./public + python3 -m http.server 8080 fi