Skip to content

Instantly share code, notes, and snippets.

@bradjones1
Created May 29, 2020 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradjones1/9a7e71fe62c3c7872f5d6a0701c8a782 to your computer and use it in GitHub Desktop.
Save bradjones1/9a7e71fe62c3c7872f5d6a0701c8a782 to your computer and use it in GitHub Desktop.
shim recursion
# Detect broken recursion.
if [ "$1" == "version" ] && [ ! -z "$FRU_DEV_SHIM_RECURSION" ]; then
exit 99
fi
# Use the next occurrence of docker-compose in the path.
DOCKER_COMPOSE=$(which -a docker-compose | sed -n '2p')
FRU_DEV_SHIM_RECURSION=1 docker-compose version 2> /dev/null || ( echo "Cannot find docker-compose; is it installed?" && exit 103)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment