From 35df5dca0089f7cc23d060a128da7f47f4ea4973 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Mon, 20 Nov 2023 00:57:40 -0500 Subject: [PATCH] Fix some build.sh stuff --- www/build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/build.sh b/www/build.sh index adcda2075c..78a2244682 100755 --- a/www/build.sh +++ b/www/build.sh @@ -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