diff --git a/cargo-lock-updater b/cargo-lock-updater index 8f5a13e..32c2ecb 100755 --- a/cargo-lock-updater +++ b/cargo-lock-updater @@ -1,5 +1,5 @@ #!/usr/bin/env zsh -for file in $(git ls-files | grep Cargo.lock); do +for file in $(git ls-files '*Cargo.lock'); do (cd "$(dirname "$file")" && cargo update -wq) git add $file done