Echo output only when necessary (#2575)

Co-authored-by: Brett Logan <lindluni@github.com>
This commit is contained in:
Marco Ferrari 2022-03-01 20:50:47 +01:00 committed by GitHub
parent 908a9ebb41
commit 244f2daed2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
#######################################