Sfoglia il codice sorgente

Update src/rebar_prv_shell.erl

Co-Authored-By: Fred Hebert <mononcqc@ferd.ca>
pull/2090/head
Tristan Sloughter 6 anni fa
committed by GitHub
parent
commit
ca22249d7c
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/rebar_prv_shell.erl

+ 1
- 1
src/rebar_prv_shell.erl Vedi File

@ -599,7 +599,7 @@ maybe_set_env_vars(State) ->
end. end.
handle_env_var_line(Line) -> handle_env_var_line(Line) ->
Trimmed = string:trim(Line, both, [$ ]),
Trimmed = rebar_string:trim(Line, both, [$\s]),
%% ignore lines starting with # and %% ignore lines starting with # and
%% fail if there are spaces around = %% fail if there are spaces around =
case re:run(Trimmed, "^(?<key>[^#][^\s=]*)=(?<value>[^\s]\.*)", case re:run(Trimmed, "^(?<key>[^#][^\s=]*)=(?<value>[^\s]\.*)",

Caricamento…
Annulla
Salva