merodi
A markdown-based static site generator.
git clone https://git.pi66.xyz/merodi
About | Files | Commits | Refs | License
fix: skip Lua init for clean action
Author: pi66
Date: 2026-10-05 01:32
commit: c51a822d
Stat
| M | src/core/core.go | 4 | +3 | -1 |
Diff
diff --git a/src/core/core.go b/src/core/core.go
index 97583cf..4d22cff 100644
--- a/src/core/core.go
+++ b/src/core/core.go
@@ -33,7 +33,9 @@ func Run(act string, args *[]string) (err error) {
state.Build.Mode = build.SetBuildMode(args)
CheckE(state.GoToProjectDir(args))
CheckE(state.LoadConfig())
- CheckE(lua.Init(&state))
+ if act != "clean" {
+ CheckE(lua.Init(&state))
+ }
CheckE(action.Run(&state, args))
return nil