Преглед изворни кода

Fix path of the parent dir of COMPOSE_FILE

Signed-off-by: Albin Kerouanton <[email protected]>
Albin Kerouanton пре 9 година
родитељ
комит
99343fd76c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      script/run/run.sh

+ 1 - 1
script/run/run.sh

@@ -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