aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-14 00:23:28 +0100
committerGitHub <noreply@github.com>2019-01-14 00:23:28 +0100
commit0d66cdc6f9c1ac25ab13223c807a4a75d3ee23a2 (patch)
treed6c3bf9cf1ab38024d66361f8b4ec4c7413c3203
parenta3d8cd3f69807d70d00eb58d4a654dde8ecda0e3 (diff)
downloadrneovim-0d66cdc6f9c1ac25ab13223c807a4a75d3ee23a2.tar.gz
rneovim-0d66cdc6f9c1ac25ab13223c807a4a75d3ee23a2.tar.bz2
rneovim-0d66cdc6f9c1ac25ab13223c807a4a75d3ee23a2.zip
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
-rwxr-xr-xscripts/pvscheck.sh4
1 files 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"