fix: Fixed args expand in terraform_docs (#260)

This commit is contained in:
Maksym Vlasov 2021-10-26 16:56:41 +03:00 committed by GitHub
commit 01a6170d36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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