From 01a6170d3685e8ec5a553cc720fb738dc6cd59d0 Mon Sep 17 00:00:00 2001 From: Maksym Vlasov Date: Tue, 26 Oct 2021 16:56:41 +0300 Subject: [PATCH] fix: Fixed args expand in terraform_docs (#260) --- terraform_docs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform_docs.sh b/terraform_docs.sh index e817687..64af6a2 100755 --- a/terraform_docs.sh +++ b/terraform_docs.sh @@ -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_() {