Skip to content

Commit 1a9b0c2

Browse files
author
Pierre Ayoub
authored
fix(git-bulk): quiet find errors by default (#1196)
1 parent 82cc37d commit 1a9b0c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git-bulk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function executBulkOp () {
146146
local actual=$PWD
147147
[ "${quiet?}" != "true" ] && echo 1>&2 "Executing bulk operation in workspace ${inverse}$actual${reset}"
148148

149-
allGitFolders=( $(eval find -L . -name ".git") )
149+
allGitFolders=( $(eval find -L . -name ".git" 2>/dev/null) )
150150

151151
for line in "${allGitFolders[@]}"; do
152152
local gitrepodir=${line::${#line}-5} # cut the .git part of find results to have the root git directory of that repository

0 commit comments

Comments
 (0)