Skip to content

Commit 396ed9e

Browse files
committed
Fix stdout/pipe detection on Linux
1 parent cbe9736 commit 396ed9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipedream/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func run(cmd *cobra.Command, args []string) error {
118118
if err != nil {
119119
return err
120120
}
121-
if info.Mode()&os.ModeCharDevice != 0 || info.Size() <= 0 {
121+
if info.Mode()&os.ModeCharDevice != 0 {
122122
return errors.New("input must be through a pipe")
123123
}
124124

0 commit comments

Comments
 (0)