summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-04-30 15:49:37 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-04-30 15:58:58 (EDT)
commit47d0500675e87d4f3c63b14e52bfe730c1307ca7 (patch)
tree460f58cc18c109f4e1e21af6e5d1ed7c3734fba9 /lib
parentb23d9bf04950c6092588e4ba677b735cf53164ef (diff)
info_v(): New function.
Diffstat (limited to 'lib')
-rw-r--r--lib/output.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/output.sh b/lib/output.sh
index 7a7888e..c3f74d5 100644
--- a/lib/output.sh
+++ b/lib/output.sh
@@ -55,3 +55,13 @@ info()
return 0
}
+
+info_v()
+{
+ if ${opt_v:-false} || ${conf_verbose:-false}; then
+ info "${@}"
+ return ${?}
+ fi
+
+ return 0
+}