From cfd813cbda0f36ec289d81c2b0f2eae9221e7168 Mon Sep 17 00:00:00 2001 From: John Wiebalk Date: Fri, 31 Jan 2020 17:52:28 -0500 Subject: [PATCH] check if version is returned --- lib/linter.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index 632ab8d3..19fbd06e 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -157,7 +157,7 @@ GetLinterVersions() ############################## # Check the shell for errors # ############################## - if [ $ERROR_CODE -ne 0 ]; then + if [ $ERROR_CODE -ne 0 ] | [ -z "$GET_VERSION_CMD" ]; then echo "WARN! Failed to get version info for:[$LINTER]" echo "---------------------------------------------" else @@ -399,7 +399,7 @@ LintJsonFiles() LINTER_NAME="jsonlint" ####################################### - # Validate we have yamllint installed # + # Validate we have jsonlint installed # ####################################### # shellcheck disable=SC2230 VALIDATE_INSTALL_CMD=$(command -v "$LINTER_NAME" 2>&1)