cargo lock updater: use git ls-files
This commit is contained in:
parent
cb75c6456c
commit
1c3adc487c
|
@ -1,6 +1,5 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
for file in $(git ls-files | grep Cargo.lock); do
|
||||||
find . -type f -name 'Cargo.lock' -print0 | while IFS=$'\0' read -r -d '' file; do
|
|
||||||
(cd "$(dirname "$file")" && cargo update -wq)
|
(cd "$(dirname "$file")" && cargo update -wq)
|
||||||
git add $file
|
git add $file
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue