diff options
author | GiacoLenzo2109 | 2021-02-25 15:57:36 +0100 |
---|---|---|
committer | GiacoLenzo2109 | 2021-02-25 15:57:36 +0100 |
commit | f150e01d1a1d477525108f4e9a8075b8674b07f0 (patch) | |
tree | 414a6317584323e1ee6b8a2f0c29ec64261b7f40 /pacnew-check.hook | |
download | aur-croco-hooks.tar.gz |
Upload
Diffstat (limited to 'pacnew-check.hook')
-rw-r--r-- | pacnew-check.hook | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pacnew-check.hook b/pacnew-check.hook new file mode 100644 index 000000000000..7704a85f487b --- /dev/null +++ b/pacnew-check.hook @@ -0,0 +1,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 |