diff --git a/build.lua b/build.lua index 6727727..5592c2b 100755 --- a/build.lua +++ b/build.lua @@ -23,6 +23,9 @@ local compiler_options = args.options or '' -- Clean the build files if needed function rmdir(p) + if not path.exists(p) then + return + end path.each(path.join(p,"*"), function(P) path.remove(P) end, {param = "f",delay = true,recurse = true,reverse = true}) path.remove(p)