diff options
author | Holger Levsen <holger@layer-acht.org> | 2012-11-09 15:51:12 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2012-11-09 15:51:12 +0100 |
commit | 95b973c1de9341a4c2c676fbfbb7af58d41bdd25 (patch) | |
tree | 81928b619a4b580f376fe458baba25ed5d0d9e25 | |
parent | 22b6aea5af34e1728139cc45b758277583f9fe0b (diff) | |
download | jenkins.debian.net-95b973c1de9341a4c2c676fbfbb7af58d41bdd25.tar.xz |
fixup webcheck and add comments to its script
-rwxr-xr-x | bin/webcheck_url.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/bin/webcheck_url.sh b/bin/webcheck_url.sh index bb36a0b7..b9ffade2 100755 --- a/bin/webcheck_url.sh +++ b/bin/webcheck_url.sh @@ -16,8 +16,22 @@ set -e export LANG=C export http_proxy="http://localhost:3128" -PARAMS="-c -f" +# +# Don't use --continue on first run +# +if [ ! -e webcheck.dat ] ; then + PARAMS="" +else + PARAMS="-c -f" +fi + +# +# $2 can only by used to ignore pattern atm +# if [ "$2" != "" ] ; then PARAMS="$PARAMS $(for i in $2 ; do echo -n " -y $i" ; done)" fi +# +# actually run webcheck +# webcheck $1 $PARAMS |