1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00

Merge branch 'master' into feature/migrate_website

This commit is contained in:
Jim Bugwadia 2020-10-14 18:00:44 -07:00
commit 2de8d60015

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)