diff --git a/terraform_docs.sh b/terraform_docs.sh index 1eb3c0526..f4335cd34 100755 --- a/terraform_docs.sh +++ b/terraform_docs.sh @@ -4,6 +4,8 @@ set -eo pipefail main() { initialize_ parse_cmdline_ "$@" + # Support for setting relative PATH to .terraform-docs.yml config. + ARGS=${ARGS/--config=/--config=$(pwd)\/} terraform_docs_ "${ARGS[*]}" "${FILES[@]}" }