瀏覽代碼

Update src/rebar_prv_shell.erl

Co-Authored-By: Fred Hebert <mononcqc@ferd.ca>
pull/2090/head
Tristan Sloughter 6 年之前
committed by GitHub
父節點
當前提交
ca22249d7c
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rebar_prv_shell.erl

+ 1
- 1
src/rebar_prv_shell.erl 查看文件

@ -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]\.*)",

Loading…
取消
儲存