mirror of
https://github.com/mudler/luet.git
synced 2025-09-08 18:49:39 +00:00
🐛 Fix handlelock panic
Somehow this slipped in, as we should check the lock only if we have enough args. Fixes #297
This commit is contained in:
committed by
GitHub
parent
fea872aba0
commit
d6ae727d79
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user