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:
parent
554e75f054
commit
7a40cd3482
12
scripts/pkgdiff
Executable file
12
scripts/pkgdiff
Executable 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)
|
Loading…
Reference in New Issue
Block a user