Project

General

Profile

« Previous | Next » 

Revision 8999

lib/util.sh: run all commands verbosely by default, not just runscripts. this ensures verbose output for invoked commands like inputs/GBIF/MySQL_export.

View differences:

util.sh
83 83
# `|| return` needed on Mac because of bug where -e doesn't apply to ()
84 84
stdout2stderr () { exec >&2; }
85 85

  
86
: "${verbosity=3}"
87

  
86 88
: "${verbosity:=$verbose}" "${verbosity:=0}"
87 89

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

Also available in: Unified diff