On Sat, Dec 29, 2007 at 01:36:51PM +0000, Richard Mace wrote:
> Could anyone tell me why the following code:
> if ! grep 'AddType application/x-httpd-php .php'
>  /etc/php5/apache2/apache2.conf; then
> echo "AddType application/x-httpd-php .php" >> /etc/apache2/apache2.conf
>   else
> echo "Text \"AddType application/x-httpd-php .php\" was found in
>    /etc/php5/apache2/apache2.conf
                                       ^^
                       You need a " somewhere here.
> fi
> Produces this error:
> 80: Syntax error: end of file unexpected (expecting "fi")
I see:
./foo.sh: line 6: unexpected EOF while looking for matching `"'
./foo.sh: line 9: syntax error: unexpected end of file
from bash which might have helped you more.
Simon.
-- 
oOoOo   "If you need to find a good pub in London follow people    oOoOo
 oOoOo   wearing Debian shirts. It works, it really does. " --    oOoOo
  oOoOo                         Alan Cox                         oOoOo