Skip to content

Commit aea25d2

Browse files
guenhterguenthgr
andauthored
Fix quiet mode of the bulk command (#1014)
Co-authored-by: guenthgr <[email protected]>
1 parent 4fff03f commit aea25d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/git-bulk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function executBulkOp () {
132132
if [[ -n $wsname ]] && [[ $rwsname != "$wsname" ]]; then continue; fi
133133
eval cd "\"$rwsdir\""
134134
local actual=$(pwd)
135-
[ "${quiet?}" != "false" ] && echo 1>&2 "Executing bulk operation in workspace ${inverse}$actual${reset}"
135+
[ "${quiet?}" != "true" ] && echo 1>&2 "Executing bulk operation in workspace ${inverse}$actual${reset}"
136136

137137
allGitFolders=( $(eval find -L . -name ".git") )
138138

@@ -141,7 +141,7 @@ function executBulkOp () {
141141
eval cd "\"$gitrepodir\"" # into git repo location
142142
local curdir=$(pwd)
143143
local leadingpath=${curdir#${actual}}
144-
[ "${quiet?}" != "false" ] && echo 1>&2 "Current repository: ${leadingpath%/*}/${bldred}${curdir##*/}${reset}"
144+
[ "${quiet?}" != "true" ] && echo 1>&2 "Current repository: ${leadingpath%/*}/${bldred}${curdir##*/}${reset}"
145145
guardedExecution "$@"
146146
eval cd "\"$rwsdir\"" # back to origin location of last find command
147147
done

0 commit comments

Comments
 (0)