Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Feresey authored and Jguer committed Aug 8, 2020
1 parent 8074179 commit 0adda5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install.go
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ func buildInstallPkgbuilds(
}

if errMake := show(passToMakepkg(dir, args...)); errMake != nil {
return errors.New(gotext.Get("error making: %s", base.String))
return errors.New(gotext.Get("error making: %s", base.String()))
}
}

Expand Down
2 changes: 2 additions & 0 deletions pkg/settings/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func (config *Configuration) SaveConfig(configPath string) error {
if err != nil {
return err
}
// https://github.com/Jguer/yay/issues/1325
marshalledinfo = append(marshalledinfo, '\n')
in, err := os.OpenFile(configPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644)
if err != nil {
return err
Expand Down

0 comments on commit 0adda5d

Please sign in to comment.