fix: 'env.sh' is optional, ignore it in shellcheck
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 15 Dec 2023 21:50:19 +0000 (16:50 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 23 Jan 2024 15:38:15 +0000 (10:38 -0500)
Since 'env.sh' is an optional file, don't fail shellcheck when it is
absent.

Change-Id: I28b768a6023b789f90e4433016e9025f2b5e2f21
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11597
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
tests/utils/utils.sh

index 7f1a4368008e977b846bf84f49bbbbc4f3e9cfb1..18b5482362bac98e07e8bd7465c85e741873ee31 100644 (file)
@@ -61,7 +61,7 @@ export BT_TESTS_BUILDDIR
 
 # Source the generated environment file if it's present.
 if [ -f "${BT_TESTS_BUILDDIR}/utils/env.sh" ]; then
-       # shellcheck source=./env.sh
+       # shellcheck disable=SC1091
        . "${BT_TESTS_BUILDDIR}/utils/env.sh"
 fi
 
This page took 0.0249 seconds and 4 git commands to generate.