'grep -q' is not portable -> don't use it.

This commit is contained in:
Francois Gouget 2003-07-30 03:43:55 +00:00 committed by Alexandre Julliard
parent 17afa80afd
commit 533f0b5d48
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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"