cookutils rev 212
cooker: be quiet while grepping for wanted in cook_order
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 23 02:26:42 2011 +0200 (2011-05-23) |
parents | 0f00f58bf2bf |
children | 57553966e2fb |
files | cooker |
line diff
1.1 --- a/cooker Sun May 22 16:39:19 2011 +0100 1.2 +++ b/cooker Mon May 23 02:26:42 2011 +0200 1.3 @@ -170,7 +170,7 @@ 1.4 . $wok/$pkg/receipt 1.5 if [ "$WANTED" ]; then 1.6 echo "$pkg :: $WANTED" 1.7 - if grep ^${WANTED}$ $cooklist; then 1.8 + if grep -q ^${WANTED}$ $cooklist; then 1.9 sed -i -e "/^$pkg$/"d \ 1.10 -e "/^$WANTED$/ a $pkg" $cooklist 1.11 fi