summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Rascão <luis.rascao@gmail.com>2016-08-16 13:33:00 +0100
committerGitHub <noreply@github.com>2016-08-16 13:33:00 +0100
commitb62370b97b27296e8a6cfff325995454cc47ef4f (patch)
tree3cc62fef01f48265fbf0250044b4ca4bd247cb4a
parent13847c69d3873b2f2576317db2d3975caedf99c5 (diff)
parentda6409079e974d8528855a986d5601b52841c4d8 (diff)
downloadrebar-b62370b97b27296e8a6cfff325995454cc47ef4f.tar.gz
Merge pull request #614 from firephreek/bug/bootstrap-file-check
Add an additional check for the existence of a 'rebar.beam' file
-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