diff options
author | Holger Levsen <holger@layer-acht.org> | 2012-11-12 00:35:44 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2012-11-12 00:35:44 +0100 |
commit | 350675db307ad5f3c86fa7b51da3632fc6df0a1a (patch) | |
tree | b0690416ed9c7f4e18ce6d871db41e6854f41c1e /bin | |
parent | f6df15b97a41ff4cb3e9836744935731d3dcffa0 (diff) | |
download | jenkins.debian.net-350675db307ad5f3c86fa7b51da3632fc6df0a1a.tar.xz |
ignore translations when checking www.debian.org
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/webcheck_url.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/webcheck_url.sh b/bin/webcheck_url.sh index 537ee90c..321a50be 100755 --- a/bin/webcheck_url.sh +++ b/bin/webcheck_url.sh @@ -33,11 +33,22 @@ if [ "${1: -1}" = "/" ] ; then fi # -# $2 can only by used to ignore pattern atm +# $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 +# +if [ "${2: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 + # # actually run webcheck # |