Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 636:7800bac1fe7e
common.subr: allow to overwrite the path to "jq": use : ${JQ=...} to init the variable if not yet done
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 26 Sep 2024 15:21:33 +0200 |
| parents | 2d0201f54870 |
| children | 971ac60a2f94 |
| files | share/local-bsdtools/common.subr |
| diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/share/local-bsdtools/common.subr Thu Sep 26 11:58:44 2024 +0200 +++ b/share/local-bsdtools/common.subr Thu Sep 26 15:21:33 2024 +0200 @@ -12,8 +12,18 @@ #: +#: +#: Dummy function to make the first "shellcheck" directive below non-global +#: for this file. +#: +__dummy_for_shellcheck_must_be_first_function_in_common_subr() { + : +} + + +# shellcheck disable=SC2223 # quote #: The path to the external jq executable (JSON parser) -JQ="/usr/local/bin/jq" +: ${JQ="/usr/local/bin/jq"} #:
