From 6e787bc6b358516eeb1e29a4300d5c59e860b834 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 eda7991..8c9e192 100755 --- a/functions +++ b/functions @@ -122,7 +122,7 @@ service_create_container() { fi # shellcheck disable=SC2086 - "$DOCKER_BIN" container create "${DOCKER_ARGS[@]}" "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION" mongod $CONFIG_OPTIONS >/dev/null + suppress_output "$DOCKER_BIN" container create "${DOCKER_ARGS[@]}" "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION" mongod $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" @@ -131,7 +131,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