From fe413f12ccecd2c836de0759735cd4bc7cd3a26e Mon Sep 17 00:00:00 2001 From: rhatto Date: Wed, 31 Jan 2007 23:28:49 +0000 Subject: simplaret: more file retrieval enhancements git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@136 04377dda-e619-0410-9926-eae83683ac58 --- src/simplaret | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3