From fdaaa1fc7718b273ee18ef672c6970e35365c8f5 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 24 Feb 2022 22:03:13 +0000 Subject: [PATCH] Use `-execdir` to update the lockfiles --- .github/scripts/update-lockfiles.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/scripts/update-lockfiles.sh b/.github/scripts/update-lockfiles.sh index b40e147c..e79e76a9 100755 --- a/.github/scripts/update-lockfiles.sh +++ b/.github/scripts/update-lockfiles.sh @@ -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