aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-10-01 16:18:56 +0100
committerMatthew Wild <mwild1@gmail.com>2018-10-01 16:18:56 +0100
commit4549aa1dd60caca6976251f2eee975c68edba2d7 (patch)
treee9d264f4f6028c5f1d70ed99b2dfa26908103ea6
parent7116337fdb82ef4456c81561d9116ace968cf218 (diff)
downloadprosody-4549aa1dd60caca6976251f2eee975c68edba2d7.tar.gz
prosody-4549aa1dd60caca6976251f2eee975c68edba2d7.zip
configure: Replace use of '-o' with '||' [SC2166]
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index bb766e86..d861ea3e 100755
--- a/configure
+++ b/configure
@@ -181,7 +181,7 @@ do
LUA_LIBDIR_SET=yes
CFLAGS="$CFLAGS -ggdb"
fi
- if [ "$OSPRESET" = "freebsd" -o "$OSPRESET" = "openbsd" ]; then
+ if [ "$OSPRESET" = "freebsd" ] || [ "$OSPRESET" = "openbsd" ]; then
LUA_INCDIR="/usr/local/include/lua51"
LUA_INCDIR_SET=yes
CFLAGS="-Wall -fPIC -I/usr/local/include"
@@ -236,7 +236,7 @@ do
--lua-version|--with-lua-version)
[ -n "$value" ] || die "Missing value in flag $key."
LUA_VERSION="$value"
- [ "$LUA_VERSION" = "5.1" -o "$LUA_VERSION" = "5.2" -o "$LUA_VERSION" = "5.3" ] || die "Invalid Lua version in flag $key."
+ [ "$LUA_VERSION" = "5.1" ] || [ "$LUA_VERSION" = "5.2" ] || [ "$LUA_VERSION" = "5.3" ] || die "Invalid Lua version in flag $key."
LUA_VERSION_SET=yes
;;
--with-lua)
@@ -425,7 +425,7 @@ then
else
interp="Lua";
fi
- if [ "$LUA_DIR_SET" -o "$LUA_BINDIR_SET" ]; then
+ if [ "$LUA_DIR_SET" ] || [ "$LUA_BINDIR_SET" ]; then
where="$LUA_BINDIR";
else
where="\$PATH";