tests/utils/env.sh.in: remove `#!/bin/bash`, add a ShellCheck directive
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 9 Feb 2024 19:32:50 +0000 (14:32 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 9 Feb 2024 19:37:06 +0000 (14:37 -0500)
`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 <eeppeliteloop@gmail.com>
Change-Id: Ieb9bd996e43e8609d1e3e7b7b3d614bd4db6f234

tests/utils/env.sh.in

index 4cd75ce14f69de861a576f02599ee63e724808b5..184389df3540c21440d44cb7917c59ecf7d367c0 100644 (file)
@@ -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() {
This page took 0.025039 seconds and 4 git commands to generate.