From 6759e6a175e15630454231488b6b30dac26241a4 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Tue, 29 Sep 2020 00:17:26 +0200 Subject: [PATCH] Show multiple COMPOSE_FILEs better Fixes #16 --- abra | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/abra b/abra index 8d90212..79c3455 100755 --- a/abra +++ b/abra @@ -261,7 +261,16 @@ sub_deploy (){ echo "About to deploy:" echo " Context: $(tput setaf 4)${DOCKER_CONTEXT}$(tput sgr0)" - echo " Compose: $(tput setaf 3)${ABRA_STACK_DIR}/${COMPOSE_FILE}$(tput sgr0)" + if [ "${COMPOSE_FILE/:/}" == "${COMPOSE_FILE}" ]; then + echo " Compose: $(tput setaf 3)${ABRA_STACK_DIR}/${COMPOSE_FILE}$(tput sgr0)" + else + echo " Compose: $(tput setaf 3)${ABRA_STACK_DIR}/" + IFS=':' read -ra COMPOSE_FILES <<< "$COMPOSE_FILE" + for COMPOSE in "${COMPOSE_FILES[@]}"; do + echo " - ${COMPOSE}" + done + tput sgr0 + fi if [ -n "$DOMAIN" ]; then echo " Domain: $(tput setaf 2)${DOMAIN}$(tput sgr0)" fi