I am trying to install docker-compose on my system and I am getting the following error. Please help me in solving this issue.
$ sudo chmod +x /usr/local/bin/docker-compose
$sudo docker-compose --version
/usr/local/bin/docker-compose: 8: /usr/local/bin/docker-compose: Syntax error: newline unexpected