diff --git a/cmd/.version b/cmd/.version index 48a8907..669f27a 100644 --- a/cmd/.version +++ b/cmd/.version @@ -1 +1 @@ -AllPac V0.9.4 +AllPac V0.9.5 diff --git a/pkg/packagemanager/install.go b/pkg/packagemanager/install.go index 48c1199..173979b 100644 --- a/pkg/packagemanager/install.go +++ b/pkg/packagemanager/install.go @@ -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)