Skip to content

Commit

Permalink
[ fix ] don't use stdbuf if it is broken (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunhamsteve authored Nov 21, 2024
1 parent fa686af commit 3fd992d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Pack/Config/Environment.idr
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,9 @@ getLineBufferingCmd = findCmd variants
0 <- system $ escapeCmd
["type", cmd, NoEscape ">", "/dev/null", NoEscape "2>", "/dev/null"]
| _ => findCmd rest
0 <- system $ escapeCmd
[ cmd, "-oL", "ls", NoEscape ">", "/dev/null", NoEscape "2>", "/dev/null"]
| _ => findCmd rest
pure $ MkLineBufferingCmd $ [cmd] ++ args

variants : List (String, CmdArgList)
Expand Down

0 comments on commit 3fd992d

Please sign in to comment.