From 42e9d208fb8b80ca10de5d04bb74ba299774f2e4 Mon Sep 17 00:00:00 2001 From: flysand7 Date: Sun, 23 Jul 2023 21:28:47 +1100 Subject: [PATCH] Fix rmdir on non-existing paths --- build.lua | 3 +++ 1 file changed, 3 insertions(+) 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)