From 0f427c324a7a32ffed4eb80af0b358f67342804c Mon Sep 17 00:00:00 2001 From: Vijayan T Date: Fri, 5 Jul 2024 16:36:25 +0530 Subject: [PATCH] Fixed excluded directories with pattern (#4980) Signed-off-by: Vijayan T --- cmd/detectExecuteScan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/detectExecuteScan.go b/cmd/detectExecuteScan.go index 1618823b08..cd98c8e8af 100644 --- a/cmd/detectExecuteScan.go +++ b/cmd/detectExecuteScan.go @@ -1124,7 +1124,7 @@ func logConfigInVerboseMode(config detectExecuteScanOptions) { } func handleExcludedDirectories(args *[]string, config *detectExecuteScanOptions) { - index := findItemInStringSlice(config.ScanProperties, "detect.excluded.directories") + index := findItemInStringSlice(config.ScanProperties, "--detect.excluded.directories=") if index != -1 && !strings.Contains(config.ScanProperties[index], configPath) { config.ScanProperties[index] += "," + configPath } else {