Compare commits

...

1 Commits

Author SHA1 Message Date
Ettore Di Giacinto
d6ae727d79 🐛 Fix handlelock panic
Somehow this slipped in, as we should check the lock only if we have enough args.

Fixes #297
2022-05-25 10:07:25 +00:00

View File

@@ -55,11 +55,7 @@ func TemplateFolders(ctx *context.Context, i installer.BuildTreeResult, treePath
}
func HandleLock() {
if os.Getenv("LUET_NOLOCK") == "true" {
return
}
if len(os.Args) == 0 {
if os.Getenv("LUET_NOLOCK") == "true" || len(os.Args) < 2 {
return
}