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
This commit is contained in:
Justin M. Keyes
2019-01-14 00:23:28 +01:00
committed by GitHub
parent a3d8cd3f69
commit 0d66cdc6f9

View File

@@ -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"