diff options
Diffstat (limited to 'check.sh')
-rwxr-xr-x | check.sh | 11 |
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 |