Re: syntax error in backup script
Quoting Jason Pepas (j.pepas@mail.utexas.edu):
> syntax error near unexpected token 'elif'
>
> this is the line in question:
>
> elif [ ! -f "/backup/current/*fullbackup.tar.gz" ]
elif needs "then" just like if does.
Cheers,
--
Email: d.wright@open.ac.uk Tel: +44 1908 653 739 Fax: +44 1908 655 151
Snail: David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer: These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.
Reply to: