aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-31 23:28:49 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-31 23:28:49 +0000
commitfe413f12ccecd2c836de0759735cd4bc7cd3a26e (patch)
tree8a7e07e40283282fb3434ea87449f27591aff693 /src
parent334bf2308836e855ed6661ba1c129f7fd5b200a2 (diff)
downloadsimplepkg-fe413f12ccecd2c836de0759735cd4bc7cd3a26e.tar.gz
simplepkg-fe413f12ccecd2c836de0759735cd4bc7cd3a26e.tar.bz2
simplaret: more file retrieval enhancements
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@136 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/simplaret b/src/simplaret
index 0bc27d6..f674e99 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -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