Merge pull request #4071 from NiR-/fix/run-as-container

Fix path of the parent dir of COMPOSE_FILE
This commit is contained in:
Joffrey F 2016-10-27 15:03:54 -07:00 committed by GitHub
commit e563b58595
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ if [ "$(pwd)" != '/' ]; then
VOLUMES="-v $(pwd):$(pwd)"
fi
if [ -n "$COMPOSE_FILE" ]; then
compose_dir=$(dirname $COMPOSE_FILE)
compose_dir=$(realpath $(dirname $COMPOSE_FILE))
fi
# TODO: also check --file argument
if [ -n "$compose_dir" ]; then