summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorStryder <stryderc@slalom.com>2016-08-15 15:48:12 -0700
committerStryder <stryderc@slalom.com>2016-08-15 15:59:06 -0700
commitda6409079e974d8528855a986d5601b52841c4d8 (patch)
tree3cc62fef01f48265fbf0250044b4ca4bd247cb4a /bootstrap
parent13847c69d3873b2f2576317db2d3975caedf99c5 (diff)
downloadrebar-da6409079e974d8528855a986d5601b52841c4d8.tar.gz
Add an additional check for the existence of a 'rebar.beam' file during bootstrap run. Bootstrap fails on first run without any .beam files in the ebin folder.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index f02ccd3..d65ccee 100755
--- a/bootstrap
+++ b/bootstrap
@@ -24,7 +24,10 @@ main(Args) ->
true ->
rm("ebin/*.beam");
false ->
- rm("ebin/rebar.beam")
+ case filelib:is_file("ebin/rebar.beam") of
+ true -> rm("ebin/rebar.beam");
+ false -> io:fwrite("No beam files found.~n")
+ end
end,
%% Add check for debug flag