From d78566890f20e3e30684b06d3c821088b8c99395 Mon Sep 17 00:00:00 2001 From: rhatto Date: Wed, 31 Jan 2007 23:43:01 +0000 Subject: simplaret: more file retrieval enhancements git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@140 04377dda-e619-0410-9926-eae83683ac58 --- src/simplaret | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/simplaret b/src/simplaret index f674e99..7a68b48 100755 --- a/src/simplaret +++ b/src/simplaret @@ -74,7 +74,7 @@ function simplaret_download { local protocol file local wget_timeout wget_passive_ftp wget_verbose - local curl_timeout curl_passive_ftp + local curl_timeout curl_passive_ftp curl_verbose local ncftpget_timeout ncftpget_passive_ftp protocol="`echo $1 | cut -d : -f 1`" @@ -92,6 +92,7 @@ function simplaret_download { if [ "$4" == "--no-verbose" ]; then wget_verbose="--no-verbose" + curl_verbose="-#" fi if [ "$protocol" == "http" ]; then @@ -115,7 +116,7 @@ function simplaret_download { elif [ "$FTP_TOOL" == "wget" ]; then wget $wget_timeout $wget_passive_ftp $wget_verbose $1/$2 -O $3/$file elif [ "$FTP_TOOL" == "curl" ]; then - curl $curl_timeout $curl_passive_ftp $1/$2 > $3/$file + curl $curl_timeout $curl_passive_ftp $curl_verbose $1/$2 > $3/$file else echo $BASENAME: error: invalid value for config variable FTP_TOOL: $FTP_TOOL echo $BASENAME: please check your config file $CONF -- cgit v1.2.3