forked from EvergreenCrypto/docker-finance
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.
This commit is contained in:
@@ -23,6 +23,8 @@
|
|||||||
# `export DOCKER_FINANCE_DEBUG=true && . ~/.bashrc`
|
# `export DOCKER_FINANCE_DEBUG=true && . ~/.bashrc`
|
||||||
#
|
#
|
||||||
# and then proceed to call `docker-finance` / `dfi` with your commands.
|
# and then proceed to call `docker-finance` / `dfi` with your commands.
|
||||||
|
|
||||||
|
# shellcheck disable=SC2154
|
||||||
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
||||||
|
|
||||||
# If not yet installed, gracefully exit
|
# If not yet installed, gracefully exit
|
||||||
|
|||||||
@@ -156,6 +156,8 @@ function main()
|
|||||||
#
|
#
|
||||||
|
|
||||||
lib_docker::docker "$@" || lib_utils::die_usage "$_usage"
|
lib_docker::docker "$@" || lib_utils::die_usage "$_usage"
|
||||||
|
|
||||||
|
# shellcheck disable=SC2154
|
||||||
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -17,7 +17,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
# shellcheck disable=SC2154
|
||||||
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
||||||
|
|
||||||
[ -z "$DOCKER_FINANCE_CONTAINER_FLOW" ] && exit 1
|
[ -z "$DOCKER_FINANCE_CONTAINER_FLOW" ] && exit 1
|
||||||
|
|
||||||
function docker-finance::completion()
|
function docker-finance::completion()
|
||||||
|
|||||||
@@ -92,6 +92,8 @@ function main()
|
|||||||
#
|
#
|
||||||
|
|
||||||
lib_finance::finance "$@" || lib_utils::die_usage "$_usage"
|
lib_finance::finance "$@" || lib_utils::die_usage "$_usage"
|
||||||
|
|
||||||
|
# shellcheck disable=SC2154
|
||||||
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user