aboutsummarylogtreecommitdiffstats
path: root/pacnew-check.hook
diff options
context:
space:
mode:
Diffstat (limited to 'pacnew-check.hook')
-rw-r--r--pacnew-check.hook12
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