On Sat, May 11, 2002 at 08:30:56PM -0700, Francois Gouget wrote: > > I would be more comfortable with the following (warning, direct edit of > the original patch):
or even.... > --- tools/wineinstall Sat May 4 13:31:24 2002 > +++ tools/wineinstall.new Sat May 11 01:19:04 2002 > @@ -319,7 +319,8 @@ > # to our sucommand string > if [ -f /etc/ld.so.conf ] > then > - if [ ! grep -qs "$libdir" /etc/ld.so.conf ] > + grep -qs "$libdir" /etc/ld.so.conf 2>/dev/null || { > echo > echo "$libdir doesn't exist in your /etc/ld.so.conf, it will be added" remembering to delete the endif... I normally use && and || rather than if/then/else/endif - generates slightly more concise shell scripts :-) David -- David Laight: [EMAIL PROTECTED]