hooks/cargo-lock-updater

6 lines
136 B
Bash
Executable file

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