From 19bd12900da3e648b31ef0e38e0cd804966deab0 Mon Sep 17 00:00:00 2001 From: Pierre Ayoub Date: Sat, 15 Feb 2025 21:42:51 +0100 Subject: [PATCH] fix(git-bulk): quiet find errors by default --- bin/git-bulk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-bulk b/bin/git-bulk index e3bdd66d6..4203bf696 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