aboutsummaryrefslogtreecommitdiff
path: root/src/simplaret
diff options
context:
space:
mode:
Diffstat (limited to 'src/simplaret')
-rwxr-xr-xsrc/simplaret5
1 files changed, 3 insertions, 2 deletions
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