summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2013-12-14 17:33:28 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2013-12-17 14:28:58 +0100
commitaf305f2425d2a11eebf84e7a4ab97cc735968a35 (patch)
treeeeb9722f7a71f77653bb55d6fb7fce93a10a742e /bootstrap
parentfbc51c0a8c9b1ceca807b7a5a60e8503bc47b308 (diff)
downloadrebar-af305f2425d2a11eebf84e7a4ab97cc735968a35.tar.gz
bootstrap: avoid trying to run 'debug' command
If you invoke 'make debug', then bootstrap executes rebar:main/1 with the extra argument "debug" and rebar treats that as a command. There is no such command. Without this patch you will see the following on bootstrap: Command 'debug' not understood or not applicable
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 70d8da1..019aaea 100755
--- a/bootstrap
+++ b/bootstrap
@@ -56,7 +56,8 @@ main(Args) ->
%% Run rebar compile to do proper .app validation etc.
%% and rebar escriptize to create the rebar script
- rebar:main(["compile", "escriptize"] ++ Args),
+ RebarArgs = Args -- ["debug"], %% Avoid trying to run 'debug' command
+ rebar:main(["compile", "escriptize"] ++ RebarArgs),
%% Finally, update executable perms for our script on *nix,
%% or write out script files on win32.