Skip to content

Instantly share code, notes, and snippets.

@timabell
Last active September 20, 2021 16:45
Show Gist options
  • Save timabell/26d5eefafc9c5c524cc732d252f8ec78 to your computer and use it in GitHub Desktop.
Save timabell/26d5eefafc9c5c524cc732d252f8ec78 to your computer and use it in GitHub Desktop.
#!/bin/sh
# tag grabber from: https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c
# original install instructions https://docs.docker.com/compose/install/
latest_tag=`curl --silent "https://api.github.com/repos/docker/compose/releases/latest"|grep '"tag_name":'|sed -E 's/.*"([^"]+)".*/\1/'`
target=~/Documents/programs/bin/docker-compose
curl -L "https://github.com/docker/compose/releases/download/$latest_tag/docker-compose-$(uname -s)-$(uname -m)" -o $target
chmod +x $target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment