Remove pacman Rns to autoremove orphans, is blocked by pacman's lock anyway

This commit is contained in:
flyingscorpio@arch-desktop 2021-02-24 18:01:36 +01:00
parent 8efdf5cd43
commit 6a85a6027f

View file

@ -8,4 +8,4 @@ Target = *
[Action]
Description = Checking if a transaction orphaned a package...
When = PostTransaction
Exec = /usr/bin/bash -c "/usr/bin/pacman -Qtd && /usr/bin/pacman -Rns $(/usr/bin/pacman -Qdtq) || /usr/bin/echo '=> None found.'"
Exec = /usr/bin/bash -c "/usr/bin/pacman -Qtd || /usr/bin/echo '=> None found.'"