hooks/cargo-lock-updater
2024-08-23 09:55:58 +10:00

7 lines
170 B
Bash
Executable file

#!/usr/bin/env zsh
find . -type f -name 'Cargo.lock' -print0 | while IFS=$'\0' read -r -d '' file; do
(cd "$(dirname "$file")" && cargo update -wq)
git add $file
done