mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Update core/tabs/system-setup/system-cleanup.sh
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
This commit is contained in:
parent
7c055a32ea
commit
61246c9a2a
|
@ -23,11 +23,7 @@ cleanup_system() {
|
|||
;;
|
||||
pacman)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" -Sc --noconfirm
|
||||
if pacman -Qtdq > /dev/null 2>&1; then
|
||||
printf "%b\n" "${YELLOW}Detected Unused Packages. Removing.${RC}"
|
||||
"$ESCALATION_TOOL" "$PACKAGER" -Rns $(pacman -Qtdq) --noconfirm > /dev/null 2>&1
|
||||
fi
|
||||
printf "%b\n" "${RED}No unused packages found. Skipping.${RC}"
|
||||
"$ESCALATION_TOOL" "$PACKAGER" -Rns $(pacman -Qtdq) --noconfirm > /dev/null || true
|
||||
;;
|
||||
*)
|
||||
printf "%b\n" "${RED}Unsupported package manager: ${PACKAGER}. Skipping.${RC}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user