From 533f0b5d487165ad43733fc0b823c7b0247ae771 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 30 Jul 2003 03:43:55 +0000 Subject: [PATCH] 'grep -q' is not portable -> don't use it. --- documentation/PACKAGING | 2 +- tools/wineinstall | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/PACKAGING b/documentation/PACKAGING index ab13b25b009..2028c62d0c0 100644 --- a/documentation/PACKAGING +++ b/documentation/PACKAGING @@ -448,7 +448,7 @@ You will need to package the files: The post-install script: - if ! grep -q /usr/X11R6/lib/wine /etc/ld.so.conf; then + if ! grep /usr/X11R6/lib/wine /etc/ld.so.conf >/dev/null; then echo "/usr/X11R6/lib/wine" >> /etc/ld.so.conf fi /sbin/ldconfig diff --git a/tools/wineinstall b/tools/wineinstall index 374decdef60..86c2b45bd12 100755 --- a/tools/wineinstall +++ b/tools/wineinstall @@ -274,7 +274,7 @@ then { # to our sucommand string if [ -f /etc/ld.so.conf ] then - if ! grep -qs "$libdir" /etc/ld.so.conf + if ! grep -s "$libdir" /etc/ld.so.conf >/dev/null 2>&1 then { echo echo "$libdir doesn't exist in your /etc/ld.so.conf, it will be added"