summaryrefslogtreecommitdiff
path: root/libalpine.sh.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2020-01-24 11:49:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2020-01-24 11:49:04 +0000
commit5d90f33f62375f23367d3c5a7badd2d7f1031744 (patch)
tree92550a7894ea5a65f7c9be55412ae4135d152019 /libalpine.sh.in
parentad9996810186cbed04ec0c185bd3c998622a0a4f (diff)
downloadalpine-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
Diffstat (limited to 'libalpine.sh.in')
-rw-r--r--libalpine.sh.in8
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