run-in-py-utils-bt2-env.sh: use the arg. count io. checking a string
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 10 Nov 2023 14:40:37 +0000 (09:40 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 7 Feb 2024 21:25:56 +0000 (16:25 -0500)
More readable.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ib8f616f815c1d7d6ed44a6b6c412e419225aa8dd

tests/utils/run-in-py-env.sh

index bca648ec89868a0507de81fc0cf092ae1a70bf71..10b590e25bfd907b2abb81b256df9a291319ceb5 100755 (executable)
@@ -25,7 +25,7 @@ usage() {
        echo "environment variable to the built \`tests\` directory."
 }
 
-if [[ -z "$*" ]]; then
+if (($# == 0)); then
        usage
        exit 1
 fi
This page took 0.024193 seconds and 4 git commands to generate.