![okch-avatar.png](https://gist.github.com/okch-codes/166b82a30aac978236e3fb805d06dd03/raw/45cd7e34bf124b2901a32f49eae6149e273ed00c/okch-avatar.png)
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/bash | |
echo "====== Docker-compose autoupdater ======" | |
DC_REMOTE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq .name -r) | |
DESTINATION=/usr/local/bin/docker-compose | |
echo "🔍 Latest remote version found: ${DC_REMOTE_VERSION}" | |
# check if docker-compose is installed | |
if [ -f $DESTINATION ]; then | |
# check version installed (if present) | |
DC_LOCAL_VERSION=$(${DESTINATION} -v | cut -d ' ' -f4) |