We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9428df4 commit 6f33928Copy full SHA for 6f33928
main.go
@@ -8,6 +8,7 @@ import (
8
"github.com/github/gh-cli/command"
9
"github.com/github/gh-cli/update"
10
"github.com/github/gh-cli/utils"
11
+ "github.com/mattn/go-isatty"
12
"github.com/mgutz/ansi"
13
"github.com/mitchellh/go-homedir"
14
)
@@ -45,9 +46,8 @@ func main() {
45
46
}
47
48
func shouldCheckForUpdate() bool {
- // errFd := os.Stderr.Fd()
49
- // return updaterEnabled != "" && (isatty.IsTerminal(errFd) || isatty.IsCygwinTerminal(errFd))
50
- return true
+ errFd := os.Stderr.Fd()
+ return updaterEnabled != "" && (isatty.IsTerminal(errFd) || isatty.IsCygwinTerminal(errFd))
51
52
53
func checkForUpdate(currentVersion string) (*update.ReleaseInfo, error) {
0 commit comments