Kaynağa Gözat

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

Fix path of the parent dir of COMPOSE_FILE
Joffrey F 9 yıl önce
ebeveyn
işleme
e563b58595
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      script/run/run.sh

+ 1 - 1
script/run/run.sh

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