[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: syntax error in backup script



unfortunately, I tried adding a 'then' but to no avail.

any other ideas?

thanks for your time

jason
jason@pepas.com

----- Original Message -----
From: "David Wright" <d.wright@open.ac.uk>
To: "Jason Pepas" <j.pepas@mail.utexas.edu>
Cc: "debian-user" <debian-user@lists.debian.org>
Sent: Tuesday, May 08, 2001 8:56 AM
Subject: 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.
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>



Reply to: