summarylogtreecommitdiffstats
path: root/update-notifier.hook
blob: 6fc018c3e930750de104f6bef1bbf4abc079e4c0 (plain)
1
2
3
4
5
6
7
8
9
10
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = update-notifier

[Action]
Description = patching update-notifier for systemd.
When = PostTransaction
Exec = /usr/bin/sed -i '/^[[:blank:]]*dunstify.*up to date/{s/\(^[[:blank:]]*\)\(dunstify .*\)/\1[ "$1" != "-systemd" ] \&\& \2 || true/}' usr/bin/update-notifier