From 47832cc81d5bc3b0c8965b5d17d0b618e286ca4b Mon Sep 17 00:00:00 2001 From: Alvin Huang <17609145+alvin-huang@users.noreply.github.com> Date: Mon, 20 Apr 2020 15:57:34 -0400 Subject: [PATCH] netlify CLI outputs "Website Draft URL" now instead of "Live Draft URL" (#7676) --- website/scripts/link-check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 \