Use COMPOSE var here

This commit is contained in:
decentral1se 2021-03-16 05:56:52 +01:00
parent 29953c17d9
commit 1dd3fe6fcd
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 1 additions and 1 deletions

2
abra
View File

@ -497,7 +497,7 @@ output_version_summary() {
echo " Versions:"
IFS=':' read -ra COMPOSE_FILES <<< "$COMPOSE_FILE"
for COMPOSE in "${COMPOSE_FILES[@]}"; do
SERVICES=$($YQ e '.services | keys | .[]' "${APP_DIR}/${COMPOSE_FILE}")
SERVICES=$($YQ e '.services | keys | .[]' "${APP_DIR}/${COMPOSE}")
for SERVICE in $SERVICES; do
filter="{{index .Spec.Labels \"coop-cloud.$STACK_NAME.$SERVICE.version\" }}"
label=$(docker service inspect -f "$filter" "${STACK_NAME}_${SERVICE}" 2>/dev/null)