Fix some build.sh stuff

This commit is contained in:
Richard Feldman 2023-11-20 00:57:40 -05:00
parent 9e7598d86c
commit 35df5dca00
No known key found for this signature in database
GPG Key ID: F1F21AA5B1D9E43B

View File

@ -20,12 +20,13 @@ cp -r public/ build/
# download the latest code for the examples
echo 'Downloading latest examples...'
curl -fLJO https://github.com/roc-lang/examples/archive/refs/heads/main.zip
unzip examples-main.zip
curl -fL -o examples-main.zip https://github.com/roc-lang/examples/archive/refs/heads/main.zip
rm -rf examples-main/
unzip -o examples-main.zip
cp -R examples-main/examples/ content/examples/
# relace links in content/examples/index.md to work on the WIP site
sed -i'' 's|](/|](/examples/|' content/examples/index.md
perl -pi -e 's|\]\(/|\]\(/examples/|g' content/examples/index.md
# clean up examples artifacts
rm -rf examples-main examples-main.zip