diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 66d47378d38..4f9f1dcd675 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: exclude: ^completions/(\.gitignore|Makefile.*)$ - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.8.0.1 + rev: v0.9.0.2 hooks: - id: shellcheck args: [-f, gcc] diff --git a/bash_completion b/bash_completion index 8ea066f03e3..5c5736e5a66 100644 --- a/bash_completion +++ b/bash_completion @@ -128,6 +128,7 @@ _comp_deprecate_func _have _comp_have_command # Backwards compatibility for compat completions that use have(). # @deprecated should no longer be used; generally not needed with dynamically # loaded completions, and _comp_have_command is suitable for runtime use. +# shellcheck disable=SC2317 # available at load time only have() { unset -v have