Skip to content

Commit

Permalink
Refuse to update homebrew install
Browse files Browse the repository at this point in the history
Authored-by: Owen Nelson <[email protected]>
  • Loading branch information
tw-owen-nelson committed Feb 19, 2024
1 parent 9802373 commit dbb038d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ func (u *Updater) Update(ctx context.Context, currentVersion string) int {
log.Errorf("unexpected value for currently installed version: %s", currentVersion)
return EXIT_FAILURE
}
executable, _ := os.Executable()
if IsHomebrewInstall(executable) {
log.Error("Detected homebrew-managed talisman install. Please upgrade through homebrew.")
return EXIT_FAILURE
}
updated, err := u.client.UpdateSelf(ctx, currentVersion, u.repository)
if err != nil {
log.Error(err)
Expand Down

0 comments on commit dbb038d

Please sign in to comment.