diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2020-01-24 11:49:04 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2020-01-24 11:49:04 +0000 |
commit | 5d90f33f62375f23367d3c5a7badd2d7f1031744 (patch) | |
tree | 92550a7894ea5a65f7c9be55412ae4135d152019 | |
parent | ad9996810186cbed04ec0c185bd3c998622a0a4f (diff) | |
download | alpine-conf-5d90f33f62375f23367d3c5a7badd2d7f1031744.zip |
libalpine: make vecho and qecho return success
vecho should return success even if $VERBOSE is empty. Similar, qecho
should return success even if $QUIET is empty.
fixes !4
-rw-r--r-- | libalpine.sh.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libalpine.sh.in b/libalpine.sh.in index d7b79fa..0f96b9f 100644 --- a/libalpine.sh.in +++ b/libalpine.sh.in @@ -26,12 +26,16 @@ echon () { # echo if in verbose mode vecho() { - [ -n "$VERBOSE" ] && echo "$@" + if [ -n "$VERBOSE" ]; then + echo "$@" + fi } # echo unless quiet mode qecho() { - [ -z "$QUIET" ] && echo "$@" + if [ -z "$QUIET" ]; then + echo "$@" + fi } # echo to stderr |