From ca22249d7c0920ff4a8cc916e4a8c8a2275b52b6 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Mon, 27 May 2019 11:53:11 -0600 Subject: Update src/rebar_prv_shell.erl Co-Authored-By: Fred Hebert --- src/rebar_prv_shell.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_prv_shell.erl b/src/rebar_prv_shell.erl index cea95ec..406b90a 100644 --- a/src/rebar_prv_shell.erl +++ b/src/rebar_prv_shell.erl @@ -599,7 +599,7 @@ maybe_set_env_vars(State) -> end. handle_env_var_line(Line) -> - Trimmed = string:trim(Line, both, [$ ]), + Trimmed = rebar_string:trim(Line, both, [$\s]), %% ignore lines starting with # and %% fail if there are spaces around = case re:run(Trimmed, "^(?[^#][^\s=]*)=(?[^\s]\.*)", -- cgit v1.1