utils
utils copied to clipboard
`HasStdin()` always returns true in Windows Git Bash
fileutil.HasStdin() return true even if there's no std input. This happens specifically with Git Bash in Windows.
Ref: https://stackoverflow.com/questions/22744443/check-if-there-is-something-to-read-on-stdin-in-golang