mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-28 09:10:09 +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) {
|
func (config *ScriptingConfig) GetScripts() (scripts []*misc.Script, err error) {
|
||||||
// Check if both Source and Sources are empty
|
// Check if both Source and Sources are empty
|
||||||
if config.Source == "" && len(config.Sources) == 0 {
|
if config.Source == "" && len(config.Sources) == 0 {
|
||||||
return nil, fmt.Errorf("no script sources provided")
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var allFiles []struct {
|
var allFiles []struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user