Skip to content

Commit 5c9844b

Browse files
committed
Fix the fix of the fix that fixes the fix
1 parent 2bb37f5 commit 5c9844b

File tree

2 files changed

+40
-36
lines changed

2 files changed

+40
-36
lines changed

.githooks/pre-commit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ fi
3636

3737
if command_exists terraform-docs; then
3838
pushd asset-account/terraform/stack-set
39+
files="$files asset-account/terraform/stack-set/README.md"
40+
3941
terraform-docs markdown . --output-file README.md
4042
popd
4143
fi
4244

4345
if command_exists ./node_modules/.bin/prettier; then
44-
./node_modules/.bin/prettier --ignore-unknown --write .
46+
echo "$files" | xargs ./node_modules/.bin/prettier --ignore-unknown --write
4547
fi
4648

4749
# Add the modified/prettified files to staging

0 commit comments

Comments
 (0)