check if version is returned

This commit is contained in:
John Wiebalk 2020-01-31 17:52:28 -05:00
parent e483da453a
commit cfd813cbda

View file

@ -157,7 +157,7 @@ GetLinterVersions()
############################## ##############################
# Check the shell for errors # # 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 "WARN! Failed to get version info for:[$LINTER]"
echo "---------------------------------------------" echo "---------------------------------------------"
else else
@ -399,7 +399,7 @@ LintJsonFiles()
LINTER_NAME="jsonlint" LINTER_NAME="jsonlint"
####################################### #######################################
# Validate we have yamllint installed # # Validate we have jsonlint installed #
####################################### #######################################
# shellcheck disable=SC2230 # shellcheck disable=SC2230
VALIDATE_INSTALL_CMD=$(command -v "$LINTER_NAME" 2>&1) VALIDATE_INSTALL_CMD=$(command -v "$LINTER_NAME" 2>&1)