From 244f2daed2feb50b01785489082aeeafd4d17819 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Tue, 1 Mar 2022 20:50:47 +0100 Subject: [PATCH] Echo output only when necessary (#2575) Co-authored-by: Brett Logan --- lib/functions/worker.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/functions/worker.sh b/lib/functions/worker.sh index 8ea61b2e..a65b2379 100755 --- a/lib/functions/worker.sh +++ b/lib/functions/worker.sh @@ -338,7 +338,9 @@ function LintCodebase() { # Success # ########### info " - File:${F[W]}[${FILE_NAME}]${F[B]} was linted with ${F[W]}[${LINTER_NAME}]${F[B]} successfully" - info " - Command output:${NC}\n------\n${LINT_CMD}\n------" + if [ -n "${LINT_CMD}" ]; then + info " - Command output:${NC}\n------\n${LINT_CMD}\n------" + fi fi else #######################################