script editor
This commit is contained in:
@@ -177,7 +177,11 @@ func New(addr string) (lucifer3.Service, error) {
|
||||
}
|
||||
}
|
||||
if patch.Script != nil {
|
||||
statePatch.Scripts[patch.Script.Name] = svc.data.Scripts[patch.Script.Name]
|
||||
if len(patch.Script.Lines) > 0 {
|
||||
statePatch.Scripts[patch.Script.Name] = svc.data.Scripts[patch.Script.Name]
|
||||
} else {
|
||||
statePatch.Scripts[patch.Script.Name] = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
svc.mu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user