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"