From 2bf7c80b3917bc38c0a15c77b3ba1fa65bde84e1 Mon Sep 17 00:00:00 2001 From: Konstantin Gredeskoul Date: Fri, 10 Sep 2021 16:56:52 -0700 Subject: [PATCH] =?UTF-8?q?Version=202.5.0=20=E2=80=94=20remove=20dependen?= =?UTF-8?q?cy=20on=20$DEBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .envrc | 2 +- .gitignore | 1 + .version | 2 +- init.sh | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.envrc b/.envrc index c7d7b99..b6df951 100644 --- a/.envrc +++ b/.envrc @@ -6,7 +6,7 @@ [[ -f "${BASHMATIC_HOME}/.bash_safe_source" ]] && \ source "${BASHMATIC_HOME}/.bash_safe_source" -coefficient=$((DEBUG + BASHMATIC_DEBUG + BASHMATIC_PATH_DEBUG)) +coefficient=$((BASHMATIC_DEBUG + BASHMATIC_PATH_DEBUG)) if [[ ${coefficient} -ge 2 ]]; then src "${BASHMATIC_HOME}/.envrc.debug" diff --git a/.gitignore b/.gitignore index 9fcfea2..43b2ef9 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ test/all.bats doc/USAGE.adoc .developer-warned .history +.vscode/*.log diff --git a/.version b/.version index 7bf4b6a..437459c 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -2.4.6 +2.5.0 diff --git a/init.sh b/init.sh index 2979f72..fe0e0be 100644 --- a/init.sh +++ b/init.sh @@ -71,12 +71,12 @@ export BASHMATIC_OS="$(/usr/bin/uname -s | /usr/bin/tr '[:upper:]' '[:lower:]')" export SHELL_COMMAND="$(/bin/ps -p $$ -o args | ${GREP_CMD} -v -E 'ARGS|COMMAND' | /usr/bin/cut -d ' ' -f 1 | sed -E 's/-//g')" function log.err() { - ((BASHMATIC_DEBUG + BASHMATIC_PATH_DEBUG + DEBUG)) || return 0 + ((BASHMATIC_DEBUG + BASHMATIC_PATH_DEBUG)) || return 0 printf "${blderr}[ERROR] --> ${bldylw}$*${clr}\n" } function log.inf() { - ((BASHMATIC_DEBUG + BASHMATIC_PATH_DEBUG + DEBUG)) || return 0 + ((BASHMATIC_DEBUG + BASHMATIC_PATH_DEBUG)) || return 0 printf "${bldblu}[INFO] --> ${bldgrn}$*${clr}\n" }