aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Schubert <bernd.schubert@fastmail.fm>2024-03-20 16:43:54 +0100
committerGitHub <noreply@github.com>2024-03-20 16:43:54 +0100
commite547a66566900f6b17bc9515beb60a304aef6466 (patch)
treef16a557db6ad00f94add7d1e0fd4ad01a43e8fcc
parentc021e910a5592756f7c3fa47f89d83e41c8a3505 (diff)
downloadlibfuse-e547a66566900f6b17bc9515beb60a304aef6466.tar.gz
ci-build.sh: Fix checking for function arguments (#909)
Checking for an emtpy string actually doesn't work for $@, so just check for number of arguments. Co-authored-by: Bernd Schubert <bschubert@ddn.com>
-rwxr-xr-xtest/ci-build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ci-build.sh b/test/ci-build.sh
index 0307865..11ec5d5 100755
--- a/test/ci-build.sh
+++ b/test/ci-build.sh
@@ -89,7 +89,7 @@ sanitized_build()
meson configure -D b_lundef=false
# additional options
- if [ -n "$@" ]; then
+ if [[ $# -gt 0 ]]; then
meson configure "$@"
fi