Skip to content

Commit 35df5dc

Browse files
committed
Fix some build.sh stuff
1 parent 9e7598d commit 35df5dc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

www/build.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ cp -r public/ build/
2020

2121
# download the latest code for the examples
2222
echo 'Downloading latest examples...'
23-
curl -fLJO https://github.com/roc-lang/examples/archive/refs/heads/main.zip
24-
unzip examples-main.zip
23+
curl -fL -o examples-main.zip https://github.com/roc-lang/examples/archive/refs/heads/main.zip
24+
rm -rf examples-main/
25+
unzip -o examples-main.zip
2526
cp -R examples-main/examples/ content/examples/
2627

2728
# relace links in content/examples/index.md to work on the WIP site
28-
sed -i'' 's|](/|](/examples/|' content/examples/index.md
29+
perl -pi -e 's|\]\(/|\]\(/examples/|g' content/examples/index.md
2930

3031
# clean up examples artifacts
3132
rm -rf examples-main examples-main.zip

0 commit comments

Comments
 (0)