#!/bin/bash
curl -s https://api.github.com/repos/docker/compose/releases/latest | grep browser_download_url  | grep docker-compose-linux-$(uname -m) | cut -d '"' -f 4 | wget -qi -
chmod +x docker-compose-linux-$(uname -m)
mv docker-compose-linux-$(uname -m) /usr/local/bin/docker-compose
rm docker-compose-*