From 391f3b3bec6283866fec8b16e128488de5205640 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 18 Jun 2016 03:35:53 +0200 Subject: Let DEBUG="" and QUIET="" mean disable the option Setting DEBUG/QUIET environment variable to the empty string now acts the same as unsetting it. Unsetting is not always easy/possible. --- src/rebar3.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rebar3.erl b/src/rebar3.erl index 82b4472..d3ea15f 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -221,10 +221,10 @@ set_options(State, {Options, NonOptArgs}) -> %% log_level() -> case os:getenv("QUIET") of - false -> + Q when Q == false; Q == "" -> DefaultLevel = rebar_log:default_level(), case os:getenv("DEBUG") of - false -> + D when D == false; D == "" -> DefaultLevel; _ -> DefaultLevel + 3 -- cgit v1.1