Commit 533f0b5d authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

parent 17afa80a
......@@ -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
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment