aboutsummarylogtreecommitdiffstats
path: root/pacnew-check.hook
blob: 7704a85f487bf56438a81c906e88a3c6a286c05b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *

[Action]
Description = Checking for .pacnew and .pacsave files...
When = PostTransaction
Exec = /usr/bin/bash -c 'pacfiles=$(pacdiff -o); if [[ -n "$pacfiles" ]]; then echo -e "\e[1m.pac* files found:\e[0m\n$pacfiles\n\e[1mPlease check and merge\e[0m"; fi'
#/etc/pacman.d/hooks/pacnew-check.hook