We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The issue is in the file clean/clean.go
// Clear unused packs output.Printf("Finding unused dependencies") pac := exec.Command("pacman", "-Qtdq") var packs []string if out, err := pac.Output(); err == nil { for _, pack := range strings.Split(string(out), "\n") { if len(pack) > 1 { packs = append(packs, pack) } } }
When there is no unused dependencies, packs should be empty
packs = append([]string{"pacman", "-Rns"}, packs...) rem := exec.Command("sudo", packs...) output.SetStd(rem) if err := rem.Run(); err != nil { return err } return nil
This statement should be run only if packs isn't empty.
The text was updated successfully, but these errors were encountered:
gal
Successfully merging a pull request may close this issue.
The issue is in the file clean/clean.go
When there is no unused dependencies, packs should be empty
This statement should be run only if packs isn't empty.
The text was updated successfully, but these errors were encountered: