-
Notifications
You must be signed in to change notification settings - Fork 31
Description
While familiarizing myself with the project I noticed that there is a shell script that has a shebang, but it is not in the first line
Lines 1 to 2 in 8ca0b7e
# SPDX-License-Identifier: Apache-2.0 | |
#!/bin/bash |
This of course would not be possible to execute as the kernel expects #!
as first characters in the file. So my suspicion is, that this file is actually not meant to be executed, but sourced. In that case the #!
line should be removed to avoid confusion.
Similar thing with this file:
Line 1 in 8ca0b7e
#!/bin/bash |
It is not documented in the file itself, but it looks like it is always meant as setting an environment by being sourced (the name of the file itself points to that convention). That means it also should not have a #!
in the front to avoid confusion.