diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-07-27 20:27:57 -0600 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-07-27 20:27:57 -0600 |
commit | 370d8df02fa4d9fac5e1c932205cc301fcfcfdb4 (patch) | |
tree | 6e7090a53af641c2571079f358812805c9861f31 /src | |
parent | 448e1ea20b82673a3e3ef3a31857a672a361cd7e (diff) |
Only run pre/post scripts for current directory; thanks to Tim Watson for pointing this out
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_post_script.erl | 2 | ||||
-rw-r--r-- | src/rebar_pre_script.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_post_script.erl b/src/rebar_post_script.erl index f2841d5..04daec7 100644 --- a/src/rebar_post_script.erl +++ b/src/rebar_post_script.erl @@ -47,7 +47,7 @@ clean(Config, _) -> %% =================================================================== execute_post_script(Config, Key) -> - case rebar_config:get(Config, Key, undefined) of + case rebar_config:get_local(Config, Key, undefined) of undefined -> ok; Script -> diff --git a/src/rebar_pre_script.erl b/src/rebar_pre_script.erl index 8784529..d2d7205 100644 --- a/src/rebar_pre_script.erl +++ b/src/rebar_pre_script.erl @@ -47,7 +47,7 @@ clean(Config, _) -> %% =================================================================== execute_pre_script(Config, Key) -> - case rebar_config:get(Config, Key, undefined) of + case rebar_config:get_local(Config, Key, undefined) of undefined -> ok; Script -> |