hooks/cargo-lock-updater

6 lines
136 B
Plaintext
Raw Normal View History

2024-08-23 09:40:05 +10:00
#!/usr/bin/env zsh
2024-08-23 11:49:19 +10:00
for file in $(git ls-files | grep Cargo.lock); do
2024-08-23 09:40:05 +10:00
(cd "$(dirname "$file")" && cargo update -wq)
git add $file
done