October 8, 2010

syntax error near unexpected token `fi'

#!/bin/bash
if [[ -e ${/fms2005/Sample/CronFlag.txt} [[ ; then
echo data file does exist
else
echo data file does not exist
fi

Error Msg:
Test.bsh: line 6: syntax error near unexpected token `fi'
Test.bsh: line 6: `fi'

what wrong with my script?
Im connecting to our Solaris Server through xShell...

thanks in advance...

Click Here!