summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuis Rascão <luis.rascao@gmail.com>2016-06-07 23:33:38 +0100
committerLuis Rascão <luis.rascao@gmail.com>2016-06-07 23:37:42 +0100
commitc43f2e55492aead6d2b5f483771cba0ac9e1bdab (patch)
tree0bdfa950dc5d0fd25528be61fcca4948b8a4933a /src
parent9281b848f563e4928b565fab57b610c7368c0be6 (diff)
downloadrebar-c43f2e55492aead6d2b5f483771cba0ac9e1bdab.tar.gz
Revert 'Treat port env vars as expandable only if they self reference'
Regression introduced in b816c69e343c8fd757c59fe8703eeda597f4da0a.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_port_compiler.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl
index 7af45eb..57253e0 100644
--- a/src/rebar_port_compiler.erl
+++ b/src/rebar_port_compiler.erl
@@ -495,10 +495,9 @@ expand_command(TmplName, Env, InFiles, OutFile) ->
%%
%% Given a string, determine if it is expandable
-%% A string is defined as expandable if it contains itself
-%% (eg. CFLAGS = -m64 $CFLAGS)
+%%
is_expandable(InStr) ->
- case re:run(InStr,"\\\$"++InStr,[{capture,none}]) of
+ case re:run(InStr,"\\\$",[{capture,none}]) of
match -> true;
nomatch -> false
end.