# HG changeset patch # User Franz Glasner # Date 1727356893 -7200 # Node ID 7800bac1fe7e657616af70a118656c20b84793d6 # Parent 2d0201f54870dc16fa421edd3de4dfa269ad58e7 common.subr: allow to overwrite the path to "jq": use : ${JQ=...} to init the variable if not yet done diff -r 2d0201f54870 -r 7800bac1fe7e share/local-bsdtools/common.subr --- 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"} #: