syntax error near unexpected token fi'