Skip to content

Commit

Permalink
Version 2.5.0 — remove dependency on $DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Sep 10, 2021
1 parent ba6dc29 commit 2bf7c80
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ test/all.bats
doc/USAGE.adoc
.developer-warned
.history
.vscode/*.log
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.6
2.5.0
4 changes: 2 additions & 2 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 2bf7c80

Please sign in to comment.