Created
May 29, 2020 20:10
-
-
Save bradjones1/9a7e71fe62c3c7872f5d6a0701c8a782 to your computer and use it in GitHub Desktop.
shim recursion
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
# 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