Allow running bash www/build.sh

This commit is contained in:
Richard Feldman 2021-06-05 22:20:32 -04:00
parent 0b00afdd51
commit e09696113c

View File

@ -2,6 +2,12 @@
set -euxo pipefail
# cd into the directory where this script lives.
# This allows us to run this script from the root project directory,
# which is what Netlify wants to do.
SCRIPT_RELATIVE_DIR=$(dirname "${BASH_SOURCE[0]}")
cd $SCRIPT_RELATIVE_DIR
rm -rf build/
cp -r public/ build/