From f95e8b4e7cb33692dcc42977ca8faa16bc054fc4 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 16 Apr 2024 13:51:44 +0100 Subject: [PATCH] completion: Add shellcheck shell hints to all completion scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- gio/completion/gapplication | 2 ++ gio/completion/gdbus | 2 ++ gio/completion/gio | 2 ++ gio/completion/gresource | 2 ++ gio/completion/gsettings | 2 ++ 5 files changed, 10 insertions(+) diff --git a/gio/completion/gapplication b/gio/completion/gapplication index 565025bd8..ed592bb24 100644 --- a/gio/completion/gapplication +++ b/gio/completion/gapplication @@ -1,4 +1,6 @@ +# shellcheck shell=bash + # Check for bash [ -z "$BASH_VERSION" ] && return diff --git a/gio/completion/gdbus b/gio/completion/gdbus index 79f4cb4b4..c9418fb06 100644 --- a/gio/completion/gdbus +++ b/gio/completion/gdbus @@ -1,4 +1,6 @@ +# shellcheck shell=bash + # Check for bash [ -z "$BASH_VERSION" ] && return diff --git a/gio/completion/gio b/gio/completion/gio index c650475b9..2a27a8c39 100644 --- a/gio/completion/gio +++ b/gio/completion/gio @@ -15,6 +15,8 @@ # along with this library; if not, see . # +# shellcheck shell=bash + # Check for bash [ -z "$BASH_VERSION" ] && return diff --git a/gio/completion/gresource b/gio/completion/gresource index ef1145d62..a30c2ade7 100644 --- a/gio/completion/gresource +++ b/gio/completion/gresource @@ -1,4 +1,6 @@ +# shellcheck shell=bash + # Check for bash [ -z "$BASH_VERSION" ] && return diff --git a/gio/completion/gsettings b/gio/completion/gsettings index ef1757636..98ee2b2c4 100644 --- a/gio/completion/gsettings +++ b/gio/completion/gsettings @@ -1,4 +1,6 @@ +# shellcheck shell=bash + # Check for bash [ -z "$BASH_VERSION" ] && return