From 4d1fc6ce19fcf08efba86f8e5f9581a069924d5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sun, 30 Oct 2011 06:39:44 +0000 Subject: [PATCH] - lftp debug 5 when debug enabled Changed files: builder.sh -> 1.666 --- builder.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/builder.sh b/builder.sh index 16abb2e..d6fa468 100644 --- a/builder.sh +++ b/builder.sh @@ -262,7 +262,12 @@ download_lftp() { local outfile=$1 url=$2 retval tmpfile # TODO: use mktemp tmpfile=$outfile.tmp - lftp -c "set net:max-retries $WGET_RETRIES; set http:user-agent \"$USER_AGENT\"; pget -n 10 -c \"$url\" -o \"$tmpfile\"" + lftp -c " + $([ "$DEBUG" = "yes" ] && echo "debug 5;") + set net:max-retries $WGET_RETRIES; + set http:user-agent \"$USER_AGENT\"; + pget -n 10 -c \"$url\" -o \"$tmpfile\" + " retval=$? if [ $retval -eq 0 ]; then -- 2.44.0