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

src/simplaret

index 0bc27d63758cb299a52034e423bb32eb08065289..f674e9999113ee2a0a6489aea0feff86a15ccd0b 100755 (executable)
@@ -38,7 +38,7 @@ function simplaret_usage {
 function simplaret_get_index {
 
   for file in `simplaret_metafiles`; do
-    echo $BASENAME: getting $1/$file
+    echo getting $1/$file
     simplaret_download $1 $file $2 --no-verbose
   done
 
@@ -99,6 +99,10 @@ function simplaret_download {
       wget $wget_timeout $wget_verbose $1/$2 -O $3/$file
     elif [ "$HTTP_TOOL" == "curl" ]; then
       curl $curl_timeout $1/$2 > $3/$file
+    else
+      echo $BASENAME: error: invalid value for config variable HTTP_TOOL: $HTTP_TOOL
+      echo $BASENAME: please check your config file $CONF
+      exit 1
     fi
   elif [ "$protocol" == "ftp" ]; then
     if [ "$PASSIVE_FTP" == "1" ]; then