Still trying to get Makepkg to stop yelling about root perms it doesn't really have

This commit is contained in:
VetheonGames 2024-01-08 15:37:27 -07:00
parent a4f05b2ac4
commit 409345289e
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
AllPac V0.9.4
AllPac V0.9.5

View File

@ -167,7 +167,7 @@ func CloneAndInstallFromAUR(repoURL string, skipConfirmation bool) (string, erro
// Build the package using makepkg as the non-root user
cmdMakePkg := exec.Command("makepkg", "-si", "--noconfirm")
cmdMakePkg.Env = []string{"HOME=" + usr.HomeDir, "USER=" + usr.Username, "LOGNAME=" + usr.Username}
cmdMakePkg.Env = []string{"PATH=" + os.Getenv("PATH")}
if output, err := cmdMakePkg.CombinedOutput(); err != nil {
logger.Errorf("error building package with makepkg: %s, %v", output, err)
return "", fmt.Errorf("error building package with makepkg: %s, %v", output, err)