diff options
-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 # |