Mike McCarty wrote:
if [ -z "`echo $pkg | grep not\ owned`" ] ; then
I'm not familiar with that form for grep. Do you mean
grep -v owned
Nope.
Anyway, this still has a defect. If there is a package with the string "owned" in its name, and it is the only dependency, then this fails. See my other message for a better solution.
Well, thanks for that ;-)
-Andy