From ff9feb4850bb7827995944528a8b9281ea38701b Mon Sep 17 00:00:00 2001 From: rhatto Date: Wed, 31 Jan 2007 23:39:40 +0000 Subject: simplaret: more file retrieval enhancements git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@139 04377dda-e619-0410-9926-eae83683ac58 --- lib/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/common.sh b/lib/common.sh index 4bfb381..a729472 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -240,13 +240,13 @@ function eval_config { VERSION="$DEFAULT_VERSION" fi - if [ "$FTP_TOOL" != "wget" ] || [ "$FTP_TOOL" != "curl" ] || [ "$FTP_TOOL" != "ncftpget" ]; then + if [ "$FTP_TOOL" != "wget" ] && [ "$FTP_TOOL" != "curl" ] && [ "$FTP_TOOL" != "ncftpget" ]; then echo "$1 configuration error: invalid value $FTP_TOOL for config parameter FTP_TOOL" echo "$1 assuming value \"curl\" for variable FTP_TOOL" FTP_TOOL="curl" fi - if [ "$HTTP_TOOL" != "wget" ] || [ "$HTTP_TOOL" != "curl" ]; then + if [ "$HTTP_TOOL" != "wget" ] && [ "$HTTP_TOOL" != "curl" ]; then echo "$1 configuration error: invalid value $HTTP_TOOL for config parameter HTTP_TOOL" echo "$1 assuming value \"curl\" for variable HTTP_TOOL" HTTP_TOOL="curl" -- cgit v1.2.3