summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-07-12 19:08:52 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-07-15 21:56:16 +0200
commitb18b573ff04250c76bd5027b2a197d08cf42fe6d (patch)
tree729b2364ad75c2e6c882dcc26c97f0d001404feb
parent55fbaf548e63ce40df51957163c7215e397eb1be (diff)
Add debug output helper
-rw-r--r--nix-utils.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/nix-utils.sh b/nix-utils.sh
index 7887feb..b0ae43c 100644
--- a/nix-utils.sh
+++ b/nix-utils.sh
@@ -13,6 +13,13 @@ stderr() {
}
#
+# Print debugging output on stderr, in green
+#
+dbg() {
+ echo -e "${Green}[DEBUG][$(basename $0)]: ${*}${Color_Off}" >&2
+}
+
+#
# Print on stdout, if verbosity is enabled, prefix in green
#
stdout() {