commit a8db9d0d429ce128b2c52371d72756051a77d77a
parent a21e10f0cef0d9e93f5d528d0da0624707be7e46
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 3 Jan 2015 21:16:36 +0100
allow empty lines and dupes
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/check-packages.sh b/check-packages.sh
@@ -6,4 +6,5 @@
comm -3 <(apt-mark showmanual | sort) \
<(grep "^`hostname`" ~/config/private/apt/machines |
cut -d ' ' -f2- | tr ' ' '\n' | grep -v '^\s*$' |
- sed "s_^_$HOME/config/apt/_" | xargs sort | cut -d ' ' -f1)
+ sed "s_^_$HOME/config/apt/_" | xargs sort | cut -d ' ' -f1 |
+ grep -v '^\s*$' | uniq)