Last active
September 20, 2021 16:45
-
-
Save timabell/26d5eefafc9c5c524cc732d252f8ec78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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