cargo lock updater: dont pipe to grep

This commit is contained in:
Alex Janka 2024-11-22 10:42:23 +11:00
parent 1c3adc487c
commit 67f6bff5eb

View file

@ -1,5 +1,5 @@
#!/usr/bin/env zsh
for file in $(git ls-files | grep Cargo.lock); do
for file in $(git ls-files '*Cargo.lock'); do
(cd "$(dirname "$file")" && cargo update -wq)
git add $file
done