Skip to content

Commit bf8e74f

Browse files
Mic92mergify[bot]
authored andcommitted
fix updating terraform docs
1 parent 08f6166 commit bf8e74f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

terraform/update-docs.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
set -euo pipefail
44
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5+
cd "$SCRIPT_DIR"
56
files=()
67
find "${SCRIPT_DIR}"/* -type d | while read -r i; do
78
module_name=$(basename "$i")
89
markdown_file="${SCRIPT_DIR}/${module_name}.md"
910
terraform-docs --config "${SCRIPT_DIR}/.terraform-docs.yml" markdown table --output-file "${markdown_file}" --output-mode inject "${module_name}"
1011
files+=("${markdown_file}")
1112
done
12-
nix fmt -- "${files[@]}"
13+
cd ..
14+
nix fmt -- --no-cache

0 commit comments

Comments
 (0)