Fixed stdin input parsing bug (#1286)

This commit is contained in:
Ice3man 2021-11-28 04:31:39 +05:30 committed by GitHub
parent dfe284664c
commit b59582bde7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}