aboutsummaryrefslogtreecommitdiff
path: root/src/simplaret
diff options
context:
space:
mode:
Diffstat (limited to 'src/simplaret')
-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