[Lunar-commits] <lunar> [FIX] #464: Use grep -q rather than grep -s

Stefan Wold ratler at lunar-linux.org
Thu Mar 17 21:36:50 CET 2011


commit 28a40ccb2a412f9d5633aacdadcf455252e20d4c
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Thu Mar 17 21:36:50 2011 +0100

    [FIX] #464: Use grep -q rather than grep -s
---
 var/lib/lunar/functions/misc.lunar |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/var/lib/lunar/functions/misc.lunar b/var/lib/lunar/functions/misc.lunar
index 9fd41ef..0a2cf31 100644
--- a/var/lib/lunar/functions/misc.lunar
+++ b/var/lib/lunar/functions/misc.lunar
@@ -32,7 +32,7 @@ ld_add() {
 	debug_msg "ld_add ($@)"
 
 	if [ ! -z "$1" ] && [ -d "$1" ] ; then
-		if [ ! `grep -s $1 /etc/ld.so.conf` ] ; then
+		if ! grep -q $1 /etc/ld.so.conf; then
 			verbose_msg "Adding $1 to ld.so.conf"
 			echo "$1" >> /etc/ld.so.conf
 			ldconfig


More information about the Lunar-commits mailing list