diff --git a/lib/linter.sh b/lib/linter.sh index aca74018..190ee7c4 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -892,8 +892,7 @@ GetStandardRules "typescript" declare -A LINTER_COMMANDS_ARRAY LINTER_COMMANDS_ARRAY['ANSIBLE']="ansible-lint -c ${ANSIBLE_LINTER_RULES}" LINTER_COMMANDS_ARRAY['ARM']="Import-Module ${ARM_TTK_PSD1} ; \${config} = \$(Import-PowerShellDataFile -Path ${ARM_LINTER_RULES}) ; Test-AzTemplate @config -TemplatePath" -if [ -z "${BASH_SEVERITY}" ] -then +if [ -z "${BASH_SEVERITY}" ]; then LINTER_COMMANDS_ARRAY['BASH']="shellcheck --color --external-sources" else LINTER_COMMANDS_ARRAY['BASH']="shellcheck --color --external-sources --severity=${BASH_SEVERITY}"