Still trying to get Makepkg to stop yelling about root perms it doesn't really have
This commit is contained in:
parent
a4f05b2ac4
commit
409345289e
|
@ -1 +1 @@
|
|||
AllPac V0.9.4
|
||||
AllPac V0.9.5
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user