Fix path of the parent dir of COMPOSE_FILE
Signed-off-by: Albin Kerouanton <albin.kerouanton@knplabs.com>
This commit is contained in:
parent
8b5782ba9f
commit
99343fd76c
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ if [ "$(pwd)" != '/' ]; then
|
||||||
VOLUMES="-v $(pwd):$(pwd)"
|
VOLUMES="-v $(pwd):$(pwd)"
|
||||||
fi
|
fi
|
||||||
if [ -n "$COMPOSE_FILE" ]; then
|
if [ -n "$COMPOSE_FILE" ]; then
|
||||||
compose_dir=$(dirname $COMPOSE_FILE)
|
compose_dir=$(realpath $(dirname $COMPOSE_FILE))
|
||||||
fi
|
fi
|
||||||
# TODO: also check --file argument
|
# TODO: also check --file argument
|
||||||
if [ -n "$compose_dir" ]; then
|
if [ -n "$compose_dir" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue