Skip to content

Commit

Permalink
Fix clean to not remove default lua files
Browse files Browse the repository at this point in the history
  • Loading branch information
novafacing committed Mar 1, 2025
1 parent e4582af commit 4830fbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.moon
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class SeleneBuild
clean_file: (path) =>
-- Clean a .lua file. Called as a callback by the
-- directory traversal. Returns OK on success, and cannot fail
if path\match("^.+%.lua$")
if path\match("^.+%.lua$") and not path\match("conf.lua") and not path\match("main.lua")
os.remove(path)
print "Removed #{path}"

Expand Down Expand Up @@ -230,4 +230,4 @@ main = (arg) ->

return rv

os.exit(main(arg))
os.exit(main(arg))

0 comments on commit 4830fbc

Please sign in to comment.