fix: cd in precommit hook, not in qmlfmt script

This commit is contained in:
Kainoa Kanter
2025-10-16 13:36:44 -07:00
parent c184a7342c
commit a431d87dc1
2 changed files with 1 additions and 2 deletions

View File

@@ -4,6 +4,5 @@
# Can be installed from AUR "qmlfmt-git"
# Requires qt6-5compat
cd "$(git rev-parse --show-toplevel)"
echo "Formatting $(find . -name "*.qml" | wc -l) files..."
find . -name "*.qml" -print0 | xargs -0 -P "$(nproc)" -I {} qmlfmt -e -b 360 -t 2 -i 2 -w {}