]> git.rmz.io Git - dotfiles.git/blobdiff - bin/pacman-disowned
bin: turn pac(stat) into a function and make it a lot simpler
[dotfiles.git] / bin / pacman-disowned
diff --git a/bin/pacman-disowned b/bin/pacman-disowned
deleted file mode 100755 (executable)
index 6c2d10e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$
-db=$tmp/db
-fs=$tmp/fs
-
-mkdir "$tmp"
-trap 'rm -rf "$tmp"' EXIT
-
-pacman -Qlq | sort -u > "$db"
-
-find /bin /etc /lib /sbin /usr \
-  ! -name lost+found \
-  \( -type d -printf '%p/\n' -o -print \) | sort > "$fs"
-
-comm -23 "$fs" "$db"