Browse Source

functions.sh: add debug()

Helge Jung 9 years ago
parent
commit
d07643508b
1 changed files with 8 additions and 0 deletions
  1. 8 0
      functions.sh

+ 8 - 0
functions.sh

@@ -6,6 +6,14 @@ function progress {
 	echo -en "\033[0m\n"
 }
 
+function debug {
+	[ "_$VERBOSE" == "_1" ] || return
+
+	echo -en "\033[1;37m  # "
+	echo -en $*
+	echo -en "\033[0m\n"
+}
+
 function info {
 	echo -en "\033[1;36m"
 	echo -en $*