Fix app ls --status

Closes #35
This commit is contained in:
3wc 2020-12-26 12:09:39 +02:00
parent e222f4152b
commit 7f009f927b

4
abra
View File

@ -480,8 +480,6 @@ sub_app_list (){
done done
fi fi
printf '%s\n' "${DEPLOYED_APPS[@]}"
printf "%s lovely apps:\n\n" "${#ENV_FILES[@]}" printf "%s lovely apps:\n\n" "${#ENV_FILES[@]}"
for i in "${!ENV_FILES[@]}"; do for i in "${!ENV_FILES[@]}"; do
@ -502,7 +500,7 @@ sub_app_list (){
APP="$(source "$ENV_FILE" && echo "$APP")" APP="$(source "$ENV_FILE" && echo "$APP")"
# shellcheck disable=SC1090 # shellcheck disable=SC1090
APP_STACK_NAME="$(source "$ENV_FILE" && echo "$STACK_NAME")" APP_STACK_NAME="$(source "$ENV_FILE" && echo "$STACK_NAME")"
if [ -z "$STACK_NAME" ]; then if [ -z "$APP_STACK_NAME" ]; then
APP_STACK_NAME="${DOMAIN//./_}" APP_STACK_NAME="${DOMAIN//./_}"
fi fi
if [ -n "$STATUS" ]; then if [ -n "$STATUS" ]; then