diff --git a/website/scripts/link-check.sh b/website/scripts/link-check.sh index c0acdfca84..ed915fcfe7 100755 --- a/website/scripts/link-check.sh +++ b/website/scripts/link-check.sh @@ -9,10 +9,10 @@ export PATH=$PATH:$(npm bin) # Deploy site to netlify # Assumes NETLIFY_SITE_ID and NETLIFY_AUTH_TOKEN env variables are set -output=$(netlify deploy --dir=./website/build) +output=$(netlify deploy --dir=./website/build --json) # Grab deploy URL -url=$(echo "$output" | grep "Live Draft URL" | sed -E 's/.*(https:\/\/.*$)/\1/') +url=$(echo "$output" | jq --raw-output '.deploy_url') # Checks broken links wget \