cargo lock updater: use git ls-files

This commit is contained in:
Alex Janka 2024-08-23 11:49:19 +10:00
parent cb75c6456c
commit 1c3adc487c

View file

@ -1,6 +1,5 @@
#!/usr/bin/env zsh
find . -type f -name 'Cargo.lock' -print0 | while IFS=$'\0' read -r -d '' file; do
for file in $(git ls-files | grep Cargo.lock); do
(cd "$(dirname "$file")" && cargo update -wq)
git add $file
done