summaryrefslogtreecommitdiffstats
path: root/check.sh
blob: f12915926e00ac458992f87de89b941c89507918 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# uses pacman to check if a file belongs to any installed package
for file in "$@"
do
  if [ -d "$file" ]; then
    continue
  fi
  files=$files" $file"
done

pacman -Qo $files > /dev/null