summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2020-05-11 17:53:59 +0000
committerintrigeri <intrigeri@boum.org>2020-05-11 17:53:59 +0000
commit36a174c58dcce15845d43a030a445e50be7d764e (patch)
tree4217c9ed916b17acde729351f6ca7d79b32ddd9a
parent2131a59bb595c65dbe2e6a83f7db1dc0862c2f91 (diff)
Test suite: lint
Credits: shellcheck
-rwxr-xr-xrun_test_suite2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_test_suite b/run_test_suite
index 9790fd8..2bb1bcb 100755
--- a/run_test_suite
+++ b/run_test_suite
@@ -276,7 +276,7 @@ done
trap "test_suite_cleanup" EXIT HUP INT QUIT TERM
-if [ "${EUID}" -ne 0 -a -z "${ALLOW_NON_ROOT}" ]; then
+if [ "${EUID}" -ne 0 ] && [ -z "${ALLOW_NON_ROOT}" ]; then
error "you are not running as root; if you really know what you are" \
"doing, see the --allow-non-root option"
fi