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:

lib/runscripts/util.run
17 17
}
18 18
fi ####
19 19

  
20
: "${verbosity=3}"
21

  
22 20
. "$(dirname "${BASH_SOURCE[0]}")"/../util.sh
23 21

  
24 22
if self_not_included; then
lib/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