summaryrefslogtreecommitdiffstats
path: root/bin/d-i_parse_logs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/d-i_parse_logs.sh')
-rwxr-xr-xbin/d-i_parse_logs.sh18
1 files changed, 5 insertions, 13 deletions
diff --git a/bin/d-i_parse_logs.sh b/bin/d-i_parse_logs.sh
index 2fae7370..a3eaa3de 100755
--- a/bin/d-i_parse_logs.sh
+++ b/bin/d-i_parse_logs.sh
@@ -1,27 +1,19 @@
#!/bin/bash
-# Copyright 2012, 2013 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 param 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
-#
-# default settings
-#
-#set -x
-set -e
-export LC_ALL=C
-export http_proxy="http://localhost:3128"
-
TMPFILE=$(mktemp)
curl $URL > $TMPFILE
if [ $(grep -c failed $TMPFILE 2>/dev/null ) -gt 1 ] ; then