comparison scripts/.functions.sh @ 189:1a8087653f2a

DEP-12: add docker-compse path if compose not found
author smith@nwoca.org
date Wed, 20 Sep 2017 17:35:04 +0100
parents 018f62da1931
children c3587159637f
comparison
equal deleted inserted replaced
188:2f5f41d237e7 189:1a8087653f2a
7 7
8 if [ "$SSDT_HOME" == "" ] 8 if [ "$SSDT_HOME" == "" ]
9 then 9 then
10 export SSDT_SCRIPTS=$(getScriptDir) 10 export SSDT_SCRIPTS=$(getScriptDir)
11 export SSDT_HOME=$(dirname $SSDT_SCRIPTS) 11 export SSDT_HOME=$(dirname $SSDT_SCRIPTS)
12 fi
13
14 if [ "$(which docker-compose)" == ""]
15 then
16 PATH="${PATH}:/usr/local/bin"
12 fi 17 fi
13 18
14 export SSDT_DOCKER_VERSION=$(docker version --format '{{.Server.Version}}') 19 export SSDT_DOCKER_VERSION=$(docker version --format '{{.Server.Version}}')
15 20
16 # deletes psql data from specified service 21 # deletes psql data from specified service