refresh-pkg-updates.hook: Don't return error when eww is not running

This commit is contained in:
Viyurz 2024-10-22 08:29:33 +02:00
parent 18a8f9801e
commit bc8c84b214
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -7,4 +7,4 @@ Target = *
[Action] [Action]
When = PostTransaction When = PostTransaction
Exec = /bin/pkill -SIGUSR1 -u 1000 pkg-updates.sh Exec = /bin/pgrep -u 1000 pkg-updates.sh || /bin/pkill -SIGUSR1 -u 1000 pkg-updates.sh