if no scripting source folders, that's not an error

This commit is contained in:
Alon Girmonsky 2024-11-06 11:34:44 -08:00
parent 8e135d570b
commit d0adbc357f

View File

@ -23,7 +23,7 @@ type ScriptingConfig struct {
func (config *ScriptingConfig) GetScripts() (scripts []*misc.Script, err error) {
// Check if both Source and Sources are empty
if config.Source == "" && len(config.Sources) == 0 {
return nil, fmt.Errorf("no script sources provided")
return nil, nil
}
var allFiles []struct {