1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00
dotfiles/scripts/pkgdiff

13 lines
288 B
Bash
Executable File

#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "Gives a diff of package lists and currently installed packages"
echo "Usage: $(basename ${BASH_SOURCE[0]}) list1 [list2] [list3]"
exit 1
fi
dir=$(dirname ${BASH_SOURCE[0]})
diff <(cat $@ | sort | uniq -u) <($dir/listpackages)