diff options
author | merakor <cem@ckyln.com> | 2021-07-19 12:20:57 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-07-19 12:20:57 +0000 |
commit | a8e8638bd7bd009b258691accae462d2ab311462 (patch) | |
tree | e308ccbe8b63281f3bc554d9948259b333aa6ddc | |
parent | e7b53041d08c088f50121a28fa75ac527a49b3ce (diff) | |
download | cpt-a8e8638bd7bd009b258691accae462d2ab311462.tar.gz |
outv/logv/warnv: fix tests
FossilOrigin-Name: 0865023dcac5e01c69e729a0863e40539cad42b496614d77febf7b17a426458e
-rw-r--r-- | src/cpt-lib.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 407fd82..7e754e8 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -37,19 +37,19 @@ warn() { outv() { # Call `out()` when CPT_VERBOSE is set. - [ "$CPT_VERBOSE" -eq 1 ] || return 0 + [ "$CPT_VERBOSE" = 1 ] || return 0 out "$@" } logv() { # Call `log()` when CPT_VERBOSE is set. - [ "$CPT_VERBOSE" -eq 1 ] || return 0 + [ "$CPT_VERBOSE" = 1 ] || return 0 log "$@" } warnv() { # Call `warn()` when CPT_VERBOSE is set. - [ "$CPT_VERBOSE" -eq 1 ] || return 0 + [ "$CPT_VERBOSE" = 1 ] || return 0 warn "$@" } |