mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-29 01:21:05 -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,8 +338,10 @@ function LintCodebase() {
|
|||
# Success #
|
||||
###########
|
||||
info " - File:${F[W]}[${FILE_NAME}]${F[B]} was linted with ${F[W]}[${LINTER_NAME}]${F[B]} successfully"
|
||||
if [ -n "${LINT_CMD}" ]; then
|
||||
info " - Command output:${NC}\n------\n${LINT_CMD}\n------"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
#######################################
|
||||
# File status = bad, this should fail #
|
||||
|
|
Loading…
Reference in a new issue