summaryrefslogtreecommitdiffstats
path: root/check.sh
diff options
context:
space:
mode:
Diffstat (limited to 'check.sh')
-rwxr-xr-xcheck.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/check.sh b/check.sh
new file mode 100755
index 0000000..f129159
--- /dev/null
+++ b/check.sh
@@ -0,0 +1,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