From 0d66cdc6f9c1ac25ab13223c807a4a75d3ee23a2 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 14 Jan 2019 00:23:28 +0100 Subject: [PATCH] pvscheck.sh: Fix download URL #9500 - old URL redirects to https://www.viva64.com/en/pvs-studio-download/ - page now contains tgz files for macOS and Linux; the pattern must match only the Linux URL --- scripts/pvscheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pvscheck.sh b/scripts/pvscheck.sh index bf523b023a..371af7c7e5 100755 --- a/scripts/pvscheck.sh +++ b/scripts/pvscheck.sh @@ -384,8 +384,8 @@ run_analysis() {( detect_url() { local url="${1:-detect}" if test "$url" = detect ; then - curl --silent -L 'https://www.viva64.com/en/pvs-studio-download-linux/' \ - | grep -o 'https\{0,1\}://[^"<>]\{1,\}/pvs-studio[^/"<>]*\.tgz' \ + curl --silent -L 'https://www.viva64.com/en/pvs-studio-download/' \ + | grep -o 'https\{0,1\}://[^"<>]\{1,\}/pvs-studio[^/"<>]*-x86_64\.tgz' \ || echo FAILED else printf '%s' "$url"