Skip to content

Commit

Permalink
Fix some build.sh stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfeldman committed Nov 20, 2023
1 parent 9e7598d commit 35df5dc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions www/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35df5dc

Please sign in to comment.