[bash] Syntax error near unexpected token 'fi'