1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
This commit is contained in:
Pooja Singh 2020-10-15 03:28:16 +05:30 committed by GitHub
parent 7d7919d7d9
commit 7ed8c18110
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)