From: Philippe Proulx Date: Fri, 9 Feb 2024 19:32:50 +0000 (-0500) Subject: tests/utils/env.sh.in: remove `#!/bin/bash`, add a ShellCheck directive X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=579b3f153e54a498557866a7b3ef571a4893b8e9 tests/utils/env.sh.in: remove `#!/bin/bash`, add a ShellCheck directive `tests/utils/env.sh` is only meant to be sourced, never executed directly, therefore the `#!/bin/bash` line is useless. Add a ShellCheck shell directive to tell ShellCheck that this is (at least) Bash code. Signed-off-by: Philippe Proulx Change-Id: Ieb9bd996e43e8609d1e3e7b7b3d614bd4db6f234 --- diff --git a/tests/utils/env.sh.in b/tests/utils/env.sh.in index 4cd75ce1..184389df 100644 --- a/tests/utils/env.sh.in +++ b/tests/utils/env.sh.in @@ -1,8 +1,8 @@ -#!/bin/bash -# # SPDX-FileCopyrightText: 2021-2022 EfficiOS, Inc. # SPDX-License-Identifier: GPL-2.0-only +# shellcheck shell=bash + # Sets the variable named `$1` to `$2` if it's not set (or empty), and # exports it. _set_var_def() {