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