Parcourir la source

functions.sh: add debug()

Helge Jung il y a 9 ans
Parent
commit
d07643508b
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  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 $*