From da6409079e974d8528855a986d5601b52841c4d8 Mon Sep 17 00:00:00 2001 From: Stryder Date: Mon, 15 Aug 2016 15:48:12 -0700 Subject: 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. --- bootstrap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bootstrap') 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 -- cgit v1.2.1