fix: properly handle multiple containers in ps:inspect

Closes #4015
This commit is contained in:
Jose Diaz-Gonzalez
2020-06-17 01:13:47 -04:00
parent 5aae49f1a0
commit 484f61fdd5

View File

@@ -46,7 +46,7 @@ EOF
local CONTAINER_FILES="$(find "$DOKKU_ROOT/$APP" -maxdepth 1 -name "CONTAINER.*" -printf "%f\n" 2>/dev/null | sort -t . -k 2 -n | xargs)"
local CIDS=()
for CONTAINER_FILE in $CONTAINER_FILES; do
CIDS+="$(<"$DOKKU_ROOT/$APP/$CONTAINER_FILE")"
CIDS+=("$(<"$DOKKU_ROOT/$APP/$CONTAINER_FILE")")
done
local PYTHON_BIN=python