mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-04-28 03:52:23 +00:00
if no scripting source folders, that's not an error
This commit is contained in:
parent
8e135d570b
commit
d0adbc357f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user