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

Add pkgdiff script

This commit is contained in:
Joe Groocock 2016-05-21 13:47:28 +01:00
parent 554e75f054
commit 7a40cd3482

12
scripts/pkgdiff Executable file
View File

@ -0,0 +1,12 @@
#!/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)