Replace grep >&/dev/null with grep -q.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2005-11-29 14:56:16 +00:00
1 parent 5941ac94f2
commit 2832dba652
1 file changed
+1 -1
+1 -1
View File
@@ -48,7 +48,7 @@ fi
case "$command" in
online)
if brctl show | grep "$vif" >&/dev/null
if brctl show | grep -q "$vif"
then
log debug "$vif already attached to a bridge"
exit 0
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.