hooks/cargo-lock-updater

6 lines
132 B
Plaintext
Raw Normal View History

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