summarylogtreecommitdiffstats
path: root/hook-script.sh
blob: bef1b8d19673431ea3e4a7c47b9f6fc5542509a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

while read -r path; do
  name="$(/usr/bin/basename "$path")"
  case "$1" in
     -i) /usr/bin/mime-archpkg -q -a "$name" ;;
     -u) /usr/bin/mime-archpkg -q -u "$name" ;;
     -r) /usr/bin/mime-archpkg -q -r "$name" ;;
   esac
done