Skip to content

Commit af357fd

Browse files
#176 Fix pipe stdin
Signed-off-by: Jerome LHUILIER <[email protected]>
1 parent 6dde5b7 commit af357fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/template-resolver/utils/resolver_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func HandleFile(yamlFile string) ([]byte, error) {
4343
return nil, fmt.Errorf("failed to read from stdin: %w", err)
4444
}
4545

46-
if stdinInfo.Size() == 0 {
46+
if stdinInfo.Size() == 0 && (stdinInfo.Mode()&os.ModeNamedPipe) == 0 {
4747
return nil, fmt.Errorf("failed to read from stdin: input is empty")
4848
}
4949

0 commit comments

Comments
 (0)