From fb6d71f538e15f735b10e183181770c77fdbf008 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 12 Nov 2012 09:24:32 +0100 Subject: convert params to variables --- bin/d-i_parse_logs.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/d-i_parse_logs.sh b/bin/d-i_parse_logs.sh index e4b676dd..9814e42c 100755 --- a/bin/d-i_parse_logs.sh +++ b/bin/d-i_parse_logs.sh @@ -3,14 +3,17 @@ # Copyright 2012 Holger Levsen # released under the GPLv=2 -# $1 = URL - 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 # @@ -20,7 +23,7 @@ export LC_ALL=C export http_proxy="http://localhost:3128" TMPFILE=$(mktemp) -curl $1 > $TMPFILE +curl $URL > $TMPFILE if [ $(grep -c failed $TMPFILE >/dev/null 2>&1) -gt 1 ] ; then figlet Warning: figlet failed builds: @@ -35,4 +38,4 @@ echo Check $1 yourself echo sed -i -s 's#