Fixing github build

This commit is contained in:
Mike Farah
2022-01-27 15:54:26 +11:00
parent 01b4917f26
commit dedd1ca892
4 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ func evaluateAll(cmd *cobra.Command, args []string) (cmdError error) {
case 1:
if nullInput {
err = yqlib.NewStreamEvaluator().EvaluateNew(processExpression(args[0]), printer, "")
} else if pipingStdIn && args[0] != "-" {
} else if pipingStdIn && args[0] != "-" && !maybeFile(args[0]) {
// must have given a single expression and piping input from stdin
err = allAtOnceEvaluator.EvaluateFiles(processExpression(args[0]), []string{"-"}, printer, leadingContentPreProcessing, decoder)