aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-07-19 12:20:57 +0000
committermerakor <cem@ckyln.com>2021-07-19 12:20:57 +0000
commita8e8638bd7bd009b258691accae462d2ab311462 (patch)
treee308ccbe8b63281f3bc554d9948259b333aa6ddc /src
parente7b53041d08c088f50121a28fa75ac527a49b3ce (diff)
downloadcpt-a8e8638bd7bd009b258691accae462d2ab311462.tar.gz
outv/logv/warnv: fix tests
FossilOrigin-Name: 0865023dcac5e01c69e729a0863e40539cad42b496614d77febf7b17a426458e
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib.in6
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 "$@"
}