aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-31 23:43:01 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-31 23:43:01 +0000
commitd78566890f20e3e30684b06d3c821088b8c99395 (patch)
tree65561faf762a4da9ce3c99fcd7e8a3082c8cccff /src
parentff9feb4850bb7827995944528a8b9281ea38701b (diff)
downloadsimplepkg-d78566890f20e3e30684b06d3c821088b8c99395.tar.gz
simplepkg-d78566890f20e3e30684b06d3c821088b8c99395.tar.bz2
simplaret: more file retrieval enhancements
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@140 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-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