
Untitled
By: a guest on
May 7th, 2012 | syntax:
Bash | size: 0.34 KB | hits: 21 | expires: Never
#!/bin/sh
for o in $(layman -l | awk '{print $2}')
do
echo "Checking for $o.."
match=$(cat /var/lib/layman/make.conf | grep "$o")
if [[ ! $match -eq "" ]]
then
echo "It's not in the config, removing it.."
echo layman -d $o
echo "Done."
fi
done