Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit bc640b3

Browse files
committed
Check stdin for terminal instead of stdout
1 parent 6b9e8b3 commit bc640b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cmd/coder/shell.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (cmd *shellCmd) Run(fl *pflag.FlagSet) {
8888
env = findEnv(entClient, envName)
8989
)
9090

91-
termfd := int(os.Stdout.Fd())
91+
termfd := int(os.Stdin.Fd())
9292

9393
tty := terminal.IsTerminal(termfd)
9494
if tty {

0 commit comments

Comments
 (0)