"syntax error near unexpected token `fi' "

one of my script as follows

HOME=/apps/logs
mv $HOME/cron.log $HOME/cron.log.`date +%Y-%m-%d`
touch $HOME/cron.log
fi

i am getting error as follows

on the last line we are getting ...

"syntax error near unexpected token `fi' "

please suggest....

There is no need of "fi" , since there is no "if".

Please remove the fi statement. If there is a if condition, please paste your whole script.

An "if" is terminated by a "fi" and you don't have any "if" to go with the "fi". Take it out, or figure out what should be in the "if" and put it back.

ok...

there no if condition at all....

thanks you...

No "fi" is required at all