mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-07-08 15:48:18 +00:00
Adding if-condition for eq operator and empty compare value
This commit is contained in:
parent
8d38c84713
commit
41e8ecc9ba
@ -143,7 +143,11 @@ func (t flagTestItem) findValue(s string) (match bool, value string, err error)
|
|||||||
if strings.HasPrefix(t.Flag, "--") {
|
if strings.HasPrefix(t.Flag, "--") {
|
||||||
value = "true"
|
value = "true"
|
||||||
} else {
|
} else {
|
||||||
value = ""
|
if t.Compare.Op == "eq" {
|
||||||
|
value = ""
|
||||||
|
} else {
|
||||||
|
value = vals[1]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user