Selaa lähdekoodia

functions.sh: add debug()

Helge Jung 9 vuotta sitten
vanhempi
commit
d07643508b
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  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 $*