Skip to content

Commit a2eaeb1

Browse files
fix: terragrunt version lookup (#7918)
1 parent 5e08e31 commit a2eaeb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/linterVersions.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ for LANGUAGE in "${!LINTER_NAMES_ARRAY[@]}"; do
231231
elif [[ ${LINTER} == "terraform" ]]; then
232232
GET_VERSION_CMD="$("${LINTER}" version -json | jq --raw-output .terraform_version)"
233233
elif [[ "${LINTER}" == "terragrunt" ]]; then
234-
GET_VERSION_CMD="$("${LINTER}" --version | awk '{ print $2 }')"
234+
GET_VERSION_CMD="$("${LINTER}" --version | awk '{ print $3 }')"
235235
elif [[ ${LINTER} == "tflint" ]]; then
236236
# Unset TF_LOG_LEVEL so that the version file doesn't contain debug log when running
237237
# commands that read TF_LOG_LEVEL or TFLINT_LOG, which are likely set to DEBUG when

0 commit comments

Comments
 (0)