From 67f6bff5eb1b801c8863418b41d5dc42821d75e1 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Fri, 22 Nov 2024 10:42:23 +1100 Subject: [PATCH] cargo lock updater: dont pipe to grep --- cargo-lock-updater | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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