Skip to content

Commit 27d3bd0

Browse files
Pierre Ayoubhyperupcall
andcommitted
refactor(git-bulk): logic optimization
Remove unnecessary subshell Co-authored-by: Edwin Kofler <[email protected]>
1 parent d6f8828 commit 27d3bd0

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
@@ -174,7 +174,7 @@ function executBulkOp () {
174174
local curdir=$PWD
175175
local leadingpath=${curdir#"${actual}"}
176176
# do not execute if we do not want to consider a ".git" directory under a hidden directory
177-
if [[ ! ( $no_follow_hidden == true && "$leadingpath" =~ "/." ) ]]; then
177+
if [ $no_follow_hidden = false ] || ! [ "$leadingpath" =~ "/." ]; then
178178
guardedExecution "$@"
179179
fi
180180
cd "$rwsdir" || exit 1 # back to origin location of last find command

0 commit comments

Comments
 (0)