Project

General

Profile

« Previous | Next » 

Revision 9145

lib/sh/util.sh: verbosity: support setting this in alternate short-name var $vb

View differences:

util.sh
156 156

  
157 157
# set verbosity
158 158
if isset verbose; then : "${verbosity:=$(bool2int "$verbose")}"; fi
159
if isset vb; then : "${verbosity:=$vb}"; fi
159 160
: "${verbosity=3}" # default
160 161
: "${verbosity:=0}" # ensure non-empty
161 162
declare -i verbosity # ensure integer

Also available in: Unified diff