Project

General

Profile

« Previous | Next » 

Revision 9731

lib/sh/util.sh: added $is_outermost, which stores whether the util.sh env has not yet set up

View differences:

lib/sh/util.sh
247 247
export verbosity # propagate to invoked commands
248 248
export PS4 # follows verbosity, so also propagate this
249 249

  
250
is_outermost="$(! isset log_level; exit2bool)" # if util.sh env not yet set up
251

  
250 252
# set log_level
251 253
: "${log_level=$(( ${#PS4}-1 ))}" # defaults to # non-space symbols in PS4
252 254
export log_level # propagate to invoked commands
......
581 583
if test "$explicit_errors_only"; then disable_logging; fi
582 584

  
583 585

  
586
echo_vars is_outermost
587

  
588

  
584 589
#### paths
585 590

  
586 591
top_dir_orig="$(dirname "$0")"; echo_vars top_dir_orig

Also available in: Unified diff