suggestions by @nnyyxxxx

Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
Adam Perkowski 2024-10-03 12:13:46 +02:00
parent a911fe1c16
commit 2f4f703fe6

View File

@ -23,8 +23,7 @@ cleanup_system() {
;;
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -Sc --noconfirm
# -Rns will return 1 if there are no packages provided
"$PACKAGER" -Qtdq | "$ESCALATION_TOOL" "$PACKAGER" -Rns --noconfirm - > /dev/null 2>&1 || true
"$ESCALATION_TOOL" "$PACKAGER" -Rns $(pacman -Qtdq) --noconfirm > /dev/null 2>&1
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"