aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/common.sh4
1 files changed, 2 insertions, 2 deletions
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"