mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 18:20:57 -05:00
Echo output only when necessary (#2575)
Co-authored-by: Brett Logan <lindluni@github.com>
This commit is contained in:
parent
908a9ebb41
commit
244f2daed2
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
#######################################
|
||||
|
|
Loading…
Reference in a new issue