From b7dac2d21a3af489c64189ccda9c3cfc67bb82da Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 12 Nov 2012 00:39:51 +0100 Subject: fixup: ignore translations when checking www.debian.org --- bin/webcheck_url.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/webcheck_url.sh b/bin/webcheck_url.sh index 321a50be..977183d7 100755 --- a/bin/webcheck_url.sh +++ b/bin/webcheck_url.sh @@ -33,22 +33,22 @@ if [ "${1: -1}" = "/" ] ; then fi # -# $2 can only by used to ignore patterns atm -# -if [ "$2" != "" ] ; then - PARAMS="$PARAMS $(for i in $2 ; do echo -n " -y $i" ; done)" -fi - -# -# ignore a a lot more patterns (=all translations) when checking www.debian.org +# ignore some extra patterns (=all translations) when checking www.debian.org # -if [ "${2:0-21}" = "http://www.debian.org" ] ; then +if [ "${1:0-21}" = "http://www.debian.org" ] ; then TRANSLATIONS=$(curl www.debian.org 2>/dev/null|grep index|grep lang=|cut -d "." -f2) for LANG in $TRANSLATIONS ; do PARAMS="$PARAMS -y $LANG.html" done fi +# +# $2 can only by used to ignore patterns atm +# +if [ "$2" != "" ] ; then + PARAMS="$PARAMS $(for i in $2 ; do echo -n " -y $i" ; done)" +fi + # # actually run webcheck # -- cgit v1.2.3-70-g09d2