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`"
if [ "$4" == "--no-verbose" ]; then
wget_verbose="--no-verbose"
+ curl_verbose="-#"
fi
if [ "$protocol" == "http" ]; then
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