Use -execdir to update the lockfiles

This commit is contained in:
Gwilym Kuiper 2022-02-24 22:03:13 +00:00
parent 52a0f87e3c
commit fdaaa1fc77

View file

@ -1,9 +1,7 @@
#!/usr/bin/env bash
function update_lockfiles() {
for toml in **/Cargo.toml; do
(cd "$(dirname "$toml")" && cargo update)
done
find . -name Cargo.lock -execdir cargo update \;
}
update_lockfiles