Project

General

Profile

« Previous | Next » 

Revision 9000

lib/util.sh: propagate the verbosity to invoked commands by exporting it

View differences:

lib/util.sh
86 86
: "${verbosity=3}"
87 87

  
88 88
: "${verbosity:=$verbose}" "${verbosity:=0}"
89
export verbosity # propagate the verbosity to invoked commands
89 90

  
90 91
can_log () { test "$verbosity" -gt 0; } # verbosity=0 turns off all logging
91 92

  

Also available in: Unified diff