From 6abdc6217ffeb0381f17edf3bdbf893d52804dc6 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 7 Feb 2023 22:22:24 -0500 Subject: [PATCH] fix: suppress output only if there are no errors --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions b/functions index 3ec59e6..050075a 100755 --- a/functions +++ b/functions @@ -129,7 +129,7 @@ service_create_container() { fi # shellcheck disable=SC2086 - "$DOCKER_BIN" container create "${DOCKER_ARGS[@]}" "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION" $CONFIG_OPTIONS >/dev/null + suppress_output "$DOCKER_BIN" container create "${DOCKER_ARGS[@]}" "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION" $CONFIG_OPTIONS if [[ -n "$(fn-plugin-property-get "$PLUGIN_COMMAND_PREFIX" "$SERVICE" "post-create-network")" ]]; then dokku_log_verbose_quiet "Connecting to networks after container create" @@ -138,7 +138,7 @@ service_create_container() { "$DOCKER_BIN" network connect --alias "$SERVICE_NAME" "$line" "$SERVICE_NAME" done < <(fn-plugin-property-get "$PLUGIN_COMMAND_PREFIX" "$SERVICE" "post-create-network" | tr "," "\n") fi - "$DOCKER_BIN" container start "$(cat "$SERVICE_ROOT/ID")" >/dev/null + suppress_output "$DOCKER_BIN" container start "$(cat "$SERVICE_ROOT/ID")" if [[ -n "$(fn-plugin-property-get "$PLUGIN_COMMAND_PREFIX" "$SERVICE" "post-start-network")" ]]; then dokku_log_verbose_quiet "Connecting to networks after container start" while read -r line || [[ -n "$line" ]]; do