mirror of
https://github.com/mudler/luet.git
synced 2025-09-12 21:33:31 +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() {
|
func HandleLock() {
|
||||||
if os.Getenv("LUET_NOLOCK") == "true" {
|
if os.Getenv("LUET_NOLOCK") == "true" || len(os.Args) < 2 {
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(os.Args) == 0 {
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user