summaryrefslogtreecommitdiffstats
path: root/bin/webcheck_url.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/webcheck_url.sh')
-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