hooks/cargo-lock-updater

6 lines
132 B
Bash
Executable file

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