From 370d8df02fa4d9fac5e1c932205cc301fcfcfdb4 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Tue, 27 Jul 2010 20:27:57 -0600 Subject: [PATCH] Only run pre/post scripts for current directory; thanks to Tim Watson for pointing this out --- src/rebar_post_script.erl | 2 +- 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 ->