summaryrefslogtreecommitdiffstats
path: root/bin/webcheck_url.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-04-25 16:46:33 +0200
committerHolger Levsen <holger@layer-acht.org>2014-04-26 20:11:52 +0200
commit3a9c01363a0af7c64179c19f1d6e884c4a7cb873 (patch)
treef144695a6c71458ca1fa1dd429af8921f056ac22 /bin/webcheck_url.sh
parente9d10b50dfa10dc5685d73d387f59772c3ea036d (diff)
downloadjenkins.debian.net-3a9c01363a0af7c64179c19f1d6e884c4a7cb873.tar.xz
use common functions. runs all scripts as copies from /tmp, so the source scripts can be updated while running.
Diffstat (limited to 'bin/webcheck_url.sh')
-rwxr-xr-xbin/webcheck_url.sh18
1 files changed, 5 insertions, 13 deletions
diff --git a/bin/webcheck_url.sh b/bin/webcheck_url.sh
index bd500658..582d4aa6 100755
--- a/bin/webcheck_url.sh
+++ b/bin/webcheck_url.sh
@@ -1,29 +1,21 @@
#!/bin/bash
-# Copyright 2012 Holger Levsen <holger@layer-acht.org>
+# Copyright 2012,2014 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2
+. /srv/jenkins/bin/common-functions.sh
+common_init "$@"
+
+# convert params to variables
if [ "$1" == "" ] ; then
echo "need at least one URL to act on"
echo '# $1 = URL'
exit 1
fi
-
-#
-# convert params to variables
-#
URL=$1
PATTERNS=$2
#
-# default settings
-#
-#set -x
-set -e
-export LC_ALL=C
-export http_proxy="http://localhost:3128"
-
-#
# Don't use --continue on first run
#
if [ ! -e webcheck.dat ] ; then