fix: Fixed 1.54.0 where terraform_docs was broken (#272)

This commit is contained in:
Maksym Vlasov 2021-10-27 18:28:05 +03:00 committed by GitHub
commit 4c509434e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ main() {
parse_cmdline_ "$@"
# Support for setting relative PATH to .terraform-docs.yml config.
ARGS=${ARGS[*]/--config=/--config=$(pwd)\/}
terraform_docs_ "${HOOK_CONFIG[*]}" "$ARGS" "${FILES[*]}"
terraform_docs_ "${HOOK_CONFIG[*]}" "$ARGS" "${FILES[@]}"
}
initialize_() {