improved coding standards. options parsing. verbose logging

This commit is contained in:
Patrick Stadler
2015-03-11 22:02:00 +01:00
parent 9858beb329
commit 5c65c6646f
10 changed files with 115 additions and 39 deletions

16
lib/utils/verbose.sh Normal file
View 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 "$@"
}