From d301c725410a42eedb8b8423744b1c6093018faa Mon Sep 17 00:00:00 2001 From: liangbowen Date: Mon, 17 Apr 2023 09:58:33 +0800 Subject: [PATCH] update style --- lib/linter.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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}"