From f68c8a71643b4a920ccceafed3e47819f0b7cdb2 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 10 Nov 2023 09:40:37 -0500 Subject: [PATCH] run-in-py-utils-bt2-env.sh: use the arg. count io. checking a string More readable. Signed-off-by: Philippe Proulx Change-Id: Ib8f616f815c1d7d6ed44a6b6c412e419225aa8dd --- tests/utils/run-in-py-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/run-in-py-env.sh b/tests/utils/run-in-py-env.sh index bca648ec..10b590e2 100755 --- a/tests/utils/run-in-py-env.sh +++ b/tests/utils/run-in-py-env.sh @@ -25,7 +25,7 @@ usage() { echo "environment variable to the built \`tests\` directory." } -if [[ -z "$*" ]]; then +if (($# == 0)); then usage exit 1 fi -- 2.34.1