mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
small fix (#1195)
This commit is contained in:
parent
7d7919d7d9
commit
7ed8c18110
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ func Command() *cobra.Command {
|
|||
}
|
||||
|
||||
var resources []*unstructured.Unstructured
|
||||
if resourcePaths[0] == "-" {
|
||||
if len(resourcePaths) > 0 && resourcePaths[0] == "-" {
|
||||
if common.IsInputFromPipe() {
|
||||
resourceStr := ""
|
||||
scanner := bufio.NewScanner(os.Stdin)
|
||||
|
|
Loading…
Add table
Reference in a new issue