diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-07-27 18:20:27 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-07-27 18:20:27 +0200 |
commit | 682d33f725411a6a07b0a9d05ca9741670aaad11 (patch) | |
tree | 930d48dbda712dd1920fd41097d130c7b853c3e5 | |
parent | 1415769217605f12fc481fb8aaef5dba9a69a067 (diff) |
Hotfix: Check if debugging is enabled before printing
-rw-r--r-- | nix-utils.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nix-utils.sh b/nix-utils.sh index b0ae43c..6dc426e 100644 --- a/nix-utils.sh +++ b/nix-utils.sh @@ -16,7 +16,8 @@ stderr() { # Print debugging output on stderr, in green # dbg() { - echo -e "${Green}[DEBUG][$(basename $0)]: ${*}${Color_Off}" >&2 + [[ $DEBUG -eq 1 ]] && \ + echo -e "${Green}[DEBUG][$(basename $0)]: ${*}${Color_Off}" >&2 } # |