diff --git a/orphans.hook b/orphans.hook index cf1223f..6bd0462 100644 --- a/orphans.hook +++ b/orphans.hook @@ -7,4 +7,4 @@ Target=* [Action] Description=Finding orphans... When=PostTransaction -Exec=/usr/bin/bash -c 'echo -e "=> None found.\r=> $(pacman -Qqtd | tr "\n" " ")"' +Exec=/usr/bin/bash -c 'OL="$(pacman -Qtdq | tr "\n" " ")"; echo "=> ${OL:-None Found}"'