Problem after Discourse update

Yes I have already run this command but it gives following error
bash: syntax error near unexpected token `(’

do I need to run it at root level or in

/var/discourse