small fixes

This commit is contained in:
2025-08-01 17:19:00 -03:00
parent 37de2f29e0
commit a4373f7254
2 changed files with 3 additions and 2 deletions

View File

@@ -540,6 +540,7 @@ func Install(packagepath string, serial uint) error {
L.SetGlobal("packets_package_dir", lua.LString(cfg.Config.DataDir))
L.SetGlobal("packets_bin_dir", lua.LString(cfg.Config.BinDir))
L.SetField(L.GetGlobal("os"), "remove", L.NewFunction(internal.SafeRemove))
if err := L.DoFile(manifest.Hooks.Install); err != nil {
log.Panic(err)