mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
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:
parent
efc85d1f49
commit
f95e8b4e7c
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
# Check for bash
|
# Check for bash
|
||||||
[ -z "$BASH_VERSION" ] && return
|
[ -z "$BASH_VERSION" ] && return
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
# Check for bash
|
# Check for bash
|
||||||
[ -z "$BASH_VERSION" ] && return
|
[ -z "$BASH_VERSION" ] && return
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
# along with this library; if not, see <http://www.gnu.org/licenses/>.
|
# along with this library; if not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
# Check for bash
|
# Check for bash
|
||||||
[ -z "$BASH_VERSION" ] && return
|
[ -z "$BASH_VERSION" ] && return
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
# Check for bash
|
# Check for bash
|
||||||
[ -z "$BASH_VERSION" ] && return
|
[ -z "$BASH_VERSION" ] && return
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
# Check for bash
|
# Check for bash
|
||||||
[ -z "$BASH_VERSION" ] && return
|
[ -z "$BASH_VERSION" ] && return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user