summaryrefslogtreecommitdiff
path: root/src/rebar_pre_script.erl
diff options
context:
space:
mode:
authorJuhani Rankimies <juhani@juranki.com>2010-12-05 02:07:12 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-01-06 15:02:19 +0100
commit52ca7795feb001f0624ec87e717e3019f8a810bd (patch)
treee66560012ae9789dfaa9d1822d19deff4676f679 /src/rebar_pre_script.erl
parentf7eb0a71589ec4ebee1315fe2f430d8af607aa36 (diff)
Unify executable invocation
Add flags to rebar_utils:sh to control output and error handling. Replace calls to os:cmd with calls to rebar_utils:sh.
Diffstat (limited to 'src/rebar_pre_script.erl')
-rw-r--r--src/rebar_pre_script.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_pre_script.erl b/src/rebar_pre_script.erl
index d2d7205..5b8fecd 100644
--- a/src/rebar_pre_script.erl
+++ b/src/rebar_pre_script.erl
@@ -51,5 +51,6 @@ execute_pre_script(Config, Key) ->
undefined ->
ok;
Script ->
- rebar_utils:sh(Script, [])
+ {ok, _} = rebar_utils:sh(Script, []),
+ ok
end.