Skip to content

Commit b50d2fe

Browse files
committed
Address PR comments
1 parent aba2bd5 commit b50d2fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/ssh.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ func ssh() *cobra.Command {
7474
}
7575

7676
updateWorkspaceBanner, outdated := verifyWorkspaceOutdated(client, workspace)
77-
if outdated {
78-
_, _ = fmt.Fprintln(cmd.OutOrStdout(), updateWorkspaceBanner)
77+
if outdated && isTTYOut(cmd) {
78+
_, _ = fmt.Fprintln(cmd.ErrOrStderr(), updateWorkspaceBanner)
7979
}
8080

8181
// OpenSSH passes stderr directly to the calling TTY.

0 commit comments

Comments
 (0)