diff options
author | Stryder <stryderc@slalom.com> | 2016-08-15 15:48:12 -0700 |
---|---|---|
committer | Stryder <stryderc@slalom.com> | 2016-08-15 15:59:06 -0700 |
commit | da6409079e974d8528855a986d5601b52841c4d8 (patch) | |
tree | 3cc62fef01f48265fbf0250044b4ca4bd247cb4a /bootstrap | |
parent | 13847c69d3873b2f2576317db2d3975caedf99c5 (diff) | |
download | rebar-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-x | bootstrap | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |