linutil icon indicating copy to clipboard operation
linutil copied to clipboard

📃 fix(system-cleanup): pacman orphan package removal

Open koibtw opened this issue 1 year ago • 1 comments

Type of Change]

  • [x] Bug fix
  • [x] Hotfix

Description

As you can see below, the script fails because:

  1. Command structure for package removal is wrong
  2. -R returns 1 when there are no packages provided

All fixed here Redirecting the output to /dev/null so the script's output doesn't get flooded.

Testing

Works :)

Issues / other PRs related

  • Resolves #741

Additional Information

image

Checklist

  • [x] My code adheres to the coding and style guidelines of the project.
  • [x] I have performed a self-review of my own code.
  • [x] I have commented my code, particularly in hard-to-understand areas.
  • [x] My changes generate no errors/warnings/merge conflicts.

(📃 is a shell script btw)

koibtw avatar Oct 02 '24 22:10 koibtw

ah i see the issue image the issue is with the quoting, what you're doing here is completely unnecessary, just remove the quotes and then send the output to null

ghost avatar Oct 03 '24 00:10 ghost