From a8e8638bd7bd009b258691accae462d2ab311462 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 19 Jul 2021 12:20:57 +0000 Subject: outv/logv/warnv: fix tests FossilOrigin-Name: 0865023dcac5e01c69e729a0863e40539cad42b496614d77febf7b17a426458e --- src/cpt-lib.in | 6 +++--- 1 file 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 "$@" } -- cgit v1.2.3