Merge pull request #3150 from MichaelEischer/fix-windows-redir-output

termstatus: Fix canUpdateStatus detection for redirected output on windows
This commit is contained in:
Alexander Neumann authored and GitHub committed 2020-12-06 21:17:27 +01:00
commit ba31c6fdaa
2 files changed
+11 -2

No files matched your search

+2 -2
View File
@@ -88,8 +88,8 @@ func canUpdateStatus(fd uintptr) bool {
return true
}
// check if the output file type is a pipe (0x0003)
if isPipe(fd) {
// check that the output file type is a pipe (0x0003)
if !isPipe(fd) {
return false
}