summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-12 00:39:51 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-12 00:39:51 +0100
commitb7dac2d21a3af489c64189ccda9c3cfc67bb82da (patch)
treef52dee3254bad9a200be0c5d81349d1cbd80bcd1
parent350675db307ad5f3c86fa7b51da3632fc6df0a1a (diff)
downloadjenkins.debian.net-b7dac2d21a3af489c64189ccda9c3cfc67bb82da.tar.xz
fixup: ignore translations when checking www.debian.org
-rwxr-xr-xbin/webcheck_url.sh18
1 files 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,16 +33,9 @@ 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"
@@ -50,6 +43,13 @@ if [ "${2:0-21}" = "http://www.debian.org" ] ; 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
+
+#
# actually run webcheck
#
webcheck $1 $PARAMS