mirror of
https://github.com/pstadler/metrics.sh.git
synced 2025-11-09 13:39:42 -05:00
improved coding standards. options parsing. verbose logging
This commit is contained in:
16
lib/utils/verbose.sh
Normal file
16
lib/utils/verbose.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
VERBOSE_MODE=false
|
||||
|
||||
verbose_on () {
|
||||
VERBOSE_MODE=true
|
||||
}
|
||||
|
||||
verbose_off () {
|
||||
VERBOSE_MODE=true
|
||||
}
|
||||
|
||||
verbose () {
|
||||
if [ $VERBOSE_MODE = "false" ]; then
|
||||
return
|
||||
fi
|
||||
echo "$@"
|
||||
}
|
||||
Reference in New Issue
Block a user