From 1a9b0c2ab46b6868f2e408c1b48f02c9fd499a30 Mon Sep 17 00:00:00 2001 From: Pierre Ayoub Date: Thu, 20 Feb 2025 08:47:27 +0100 Subject: [PATCH] fix(git-bulk): quiet find errors by default (#1196) --- bin/git-bulk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-bulk b/bin/git-bulk index 48c1954..1b54e20 100755 --- a/bin/git-bulk +++ b/bin/git-bulk @@ -146,7 +146,7 @@ function executBulkOp () { local actual=$PWD [ "${quiet?}" != "true" ] && echo 1>&2 "Executing bulk operation in workspace ${inverse}$actual${reset}" - allGitFolders=( $(eval find -L . -name ".git") ) + allGitFolders=( $(eval find -L . -name ".git" 2>/dev/null) ) for line in "${allGitFolders[@]}"; do local gitrepodir=${line::${#line}-5} # cut the .git part of find results to have the root git directory of that repository