]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
simplaret: more file retrieval enhancements
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 31 Jan 2007 23:43:01 +0000 (23:43 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 31 Jan 2007 23:43:01 +0000 (23:43 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@140 04377dda-e619-0410-9926-eae83683ac58

src/simplaret

index f674e9999113ee2a0a6489aea0feff86a15ccd0b..7a68b48110ea20af39265ad8f39671ebee3e3173 100755 (executable)
@@ -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