mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
fix shellcheck warnings in git hook example
Signed-off-by: andreswebs <andreswebs@pm.me>
This commit is contained in:
@@ -111,11 +111,9 @@ make a commit. See also [git hooks] documentation.
|
||||
#!/bin/sh
|
||||
|
||||
# Keep module docs up to date
|
||||
for d in $(ls -1 modules)
|
||||
do
|
||||
terraform-docs md modules/$d > modules/$d/README.md
|
||||
if [ $? -eq 0 ] ; then
|
||||
git add "./modules/$d/README.md"
|
||||
for d in modules/*; do
|
||||
if terraform-docs md "$d" > "$d/README.md"; then
|
||||
git add "./$d/README.md"
|
||||
fi
|
||||
done
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user