run-in-py-utils-bt2-env.sh: remove unneeded quotes
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 10 Nov 2023 14:41:57 +0000 (09:41 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 7 Feb 2024 21:25:56 +0000 (16:25 -0500)
Word splitting and globbing doesn't happen in those contexts.

Removing them makes the code easier to read.

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

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

index 10b590e25bfd907b2abb81b256df9a291319ceb5..84788c56943e4b70622195e1021168b143018288 100755 (executable)
@@ -5,10 +5,10 @@
 # Copyright (C) 2017-2023 Philippe Proulx <pproulx@efficios.com>
 # Copyright (C) 2019 Simon Marchi <simon.marchi@efficios.com>
 
-if [[ -n "${BT_TESTS_SRCDIR:-}" ]]; then
-       UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh"
+if [[ -n ${BT_TESTS_SRCDIR:-} ]]; then
+       UTILSSH=$BT_TESTS_SRCDIR/utils/utils.sh
 else
-       UTILSSH="$(dirname "$0")/../utils/utils.sh"
+       UTILSSH=$(dirname "$0")/../utils/utils.sh
 fi
 
 # shellcheck source=../utils/utils.sh
@@ -31,7 +31,7 @@ if (($# == 0)); then
 fi
 
 # Sanity check that the BT_TESTS_BUILDDIR value makes sense.
-if [[ ! -f "$BT_TESTS_BUILDDIR/Makefile" ]]; then
+if [[ ! -f $BT_TESTS_BUILDDIR/Makefile ]]; then
        {
                echo "ERROR: Invalid \`BT_TESTS_BUILDDIR\` variable (\`\$BT_TESTS_BUILDDIR/Makefile\`"
                echo "doesn't exist)."
This page took 0.024453 seconds and 4 git commands to generate.