completion: Add shellcheck shell hints to all completion scripts

Because completion scripts are not executed directly, they don’t have a
shebang line, so shellcheck can’t be sure which shell syntax to use for
them. Help it out.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-04-16 13:51:44 +01:00
parent efc85d1f49
commit f95e8b4e7c
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73
5 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,6 @@
# shellcheck shell=bash
# Check for bash
[ -z "$BASH_VERSION" ] && return

View File

@ -1,4 +1,6 @@
# shellcheck shell=bash
# Check for bash
[ -z "$BASH_VERSION" ] && return

View File

@ -15,6 +15,8 @@
# along with this library; if not, see <http://www.gnu.org/licenses/>.
#
# shellcheck shell=bash
# Check for bash
[ -z "$BASH_VERSION" ] && return

View File

@ -1,4 +1,6 @@
# shellcheck shell=bash
# Check for bash
[ -z "$BASH_VERSION" ] && return

View File

@ -1,4 +1,6 @@
# shellcheck shell=bash
# Check for bash
[ -z "$BASH_VERSION" ] && return