Fix issues

This commit is contained in:
Feresey authored and J Guerreiro committed 2020-08-08 17:00:18 +01:00
1 parent 8074179112
commit 0adda5da4f
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -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()))
}
}
+2
View File
@@ -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