From d7caec13e40cae6db0f713ef9e4b4c1ad024d60d Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Wed, 14 Aug 2024 19:56:04 -0700 Subject: [PATCH] client/container: disable shellcheck warning for DOCKER_FINANCE_DEBUG If it's not set or set to false, then it's expected to be not true. --- client/src/docker/completion.bash | 2 ++ client/src/docker/docker.bash | 2 ++ container/src/finance/completion.bash | 2 ++ container/src/finance/finance.bash | 2 ++ 4 files changed, 8 insertions(+) diff --git a/client/src/docker/completion.bash b/client/src/docker/completion.bash index 04955e1..a217574 100644 --- a/client/src/docker/completion.bash +++ b/client/src/docker/completion.bash @@ -23,6 +23,8 @@ # `export DOCKER_FINANCE_DEBUG=true && . ~/.bashrc` # # and then proceed to call `docker-finance` / `dfi` with your commands. + +# shellcheck disable=SC2154 [ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv # If not yet installed, gracefully exit diff --git a/client/src/docker/docker.bash b/client/src/docker/docker.bash index 2dbf6ab..c9bce8d 100755 --- a/client/src/docker/docker.bash +++ b/client/src/docker/docker.bash @@ -156,6 +156,8 @@ function main() # lib_docker::docker "$@" || lib_utils::die_usage "$_usage" + + # shellcheck disable=SC2154 [ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv # diff --git a/container/src/finance/completion.bash b/container/src/finance/completion.bash index b529c25..641fe3d 100644 --- a/container/src/finance/completion.bash +++ b/container/src/finance/completion.bash @@ -17,7 +17,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +# shellcheck disable=SC2154 [ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv + [ -z "$DOCKER_FINANCE_CONTAINER_FLOW" ] && exit 1 function docker-finance::completion() diff --git a/container/src/finance/finance.bash b/container/src/finance/finance.bash index a3f1205..a2050aa 100755 --- a/container/src/finance/finance.bash +++ b/container/src/finance/finance.bash @@ -92,6 +92,8 @@ function main() # lib_finance::finance "$@" || lib_utils::die_usage "$_usage" + + # shellcheck disable=SC2154 [ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv #