Skip to content

Commit

Permalink
fix: Fix upgrade command on non-amd64 Linux machines
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Oct 1, 2021
1 parent 29464c6 commit 8fda89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/upgradecmd.go
Expand Up @@ -281,7 +281,7 @@ func (c *Config) getLibc() (string, error) {

func (c *Config) replaceExecutable(ctx context.Context, executableFilenameAbsPath chezmoi.AbsPath, releaseVersion *semver.Version, rr *github.RepositoryRelease) error {
goos := runtime.GOOS
if goos == "linux" {
if goos == "linux" && runtime.GOARCH == "amd64" {
libc, err := c.getLibc()
if err != nil {
return err
Expand Down

0 comments on commit 8fda89b

Please sign in to comment.