Project

General

Profile

« Previous | Next » 

Revision 9077

lib/sh/util.sh: propagate indent to invoked commands by exporting PS4

View differences:

lib/sh/util.sh
118 118
: "${verbosity=3}" # default
119 119
: "${verbosity:=0}" # ensure non-empty
120 120
declare -i verbosity # ensure integer
121
export verbosity # propagate the verbosity to invoked commands
121
export PS4 verbosity # propagate indent and verbosity to invoked commands
122 122

  
123 123
can_log() { test "$verbosity" -gt 0; } # verbosity=0 turns off all logging
124 124

  

Also available in: Unified diff