Skip to content

Commit

Permalink
Run "pacman -Qqtd" without sudo (no need for root)
Browse files Browse the repository at this point in the history
  • Loading branch information
c4rlo committed Jul 31, 2022
1 parent 902541f commit 253608d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archupd.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func pacman(args ...string) error {

func removeSuperfluousPackages() error {
var output strings.Builder
cmd := exec.Command("sudo", "pacman", "-Qqtd")
cmd := exec.Command("pacman", "-Qqtd")
cmd.Stdout = &output
cmd.Stderr = os.Stderr
err := cmd.Run()
Expand Down

0 comments on commit 253608d

Please sign in to comment.