make public if it doesn't exist before serving

This commit is contained in:
Brian Hicks 2019-04-02 15:38:48 -05:00
parent 78fd68b285
commit 1966878cbc

View File

@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
if ! test -d public; then make public; fi
# start a web server
./script/serve.sh public &
SERVER_PID=$!