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
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