aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-12-30 14:12:51 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-12-30 14:12:51 -0500
commit7e78a2ae9e7679b019f4bb590e3594396892cebc (patch)
tree66b687d3625cbd896da638cad15a67e93bbbe93e
parentb26045e94715b0d5813d0ba8d4125a49a4a5317b (diff)
downloadlite-xl-plugin-manager-7e78a2ae9e7679b019f4bb590e3594396892cebc.tar.gz
lite-xl-plugin-manager-7e78a2ae9e7679b019f4bb590e3594396892cebc.zip
Fixed cmake warning.
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 329ac9f..21ad04c 100755
--- a/build.sh
+++ b/build.sh
@@ -11,7 +11,7 @@ CFLAGS="$CFLAGS -Ilib/prefix/include"
LDFLAGS="$LDFLAGS -lm -Llib/prefix/lib"
[[ "$@" == "clean" ]] && rm -rf lib/libgit2/build lib/zlib/build lib/libzip/build lib/mbedtls-2.27.0/build lib/prefix lua $BIN *.exe src/lpm.luac src/lpm.lua.c && exit 0
-cmake --version >/dev/null && [[ "$?" != 0 ]] && echo "Please ensure that you have cmake installed." && exit -1
+cmake --version >/dev/null 2>/dev/null || { echo "Please ensure that you have cmake installed." && exit -1; }
# Build supporting libraries, libz, libmbedtls, libmbedcrypto, libgit2, libzip, libmicrotar, liblua
CMAKE_DEFAULT_FLAGS=" $CMAKE_DEFAULT_FLAGS -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=`pwd`/lib/prefix -DCMAKE_INSTALL_PREFIX=`pwd`/lib/prefix -DBUILD_SHARED_LIBS=OFF"