We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Executable
1 parent 98f1f5e commit cfbfb57Copy full SHA for cfbfb57
cmd/gh/main.go
@@ -163,10 +163,7 @@ func main() {
163
164
newRelease := <-updateMessageChan
165
if newRelease != nil {
166
- isHomebrew := false
167
- if ghExe, err := os.Executable(); err == nil {
168
- isHomebrew = isUnderHomebrew(ghExe)
169
- }
+ isHomebrew := isUnderHomebrew(cmdFactory.Executable)
170
if isHomebrew && isRecentRelease(newRelease.PublishedAt) {
171
// do not notify Homebrew users before the version bump had a chance to get merged into homebrew-core
172
return
0 commit comments