update_check.sh: reset regex before each site

Fixes a bug where python projects from PYPI which have a github
homepage gets the github regex when checking PYPI.
This commit is contained in:
Eivind Uggedal 2014-11-03 11:27:12 +00:00
parent b7219e9407
commit 451b5d3bcc

View file

@ -20,6 +20,7 @@ update_check() {
printf '%s\n' "$update_site" printf '%s\n' "$update_site"
fi | fi |
while IFS= read -r url; do while IFS= read -r url; do
rx=
if [ -z "$update_site" ]; then if [ -z "$update_site" ]; then
case "$url" in case "$url" in
*sourceforge.net/sourceforge*) *sourceforge.net/sourceforge*)