Fixed stdin input parsing bug
@@ -71,9 +71,8 @@ func hasStdin() bool {
return false
}
- isPipedFromChrDev := (stat.Mode() & os.ModeCharDevice) == 0
+ isPipedFromChrDev := (stat.Mode() & os.ModeCharDevice) != 0
isPipedFromFIFO := (stat.Mode() & os.ModeNamedPipe) != 0
-
return isPipedFromChrDev || isPipedFromFIFO
}
