Re: Whats wrong with this script ?
On Wed, Aug 14, 2002 at 09:14:17PM +0530, Dr. Sachin Kale wrote:
> Colin Watson Sent: Wednesday, August 14, 2002 10:34 AM
> > Split that line after 'modinfo', so:
> >
> > MI=/tmp/modinfo
> > [ -z "$DEPMOD" ] && DEPMOD=depmod #new kernel version
>
> After doing that I get the following error -
>
> ./fixscript1: line 6: syntax error near unexpected token `echo'
> ./fixscript1: line 6: ` echo -n doing $i
> '
Did you also follow Vineet's suggestion to join the 'for' line and the
one after it?
Also join these two lines:
echo -ne "kernel_version="`uname -r`"\0" > $MI #build the objcopy
command
Word-wrap is quite remarkably bad for scripts ...
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: