Skip to content

Commit cc083e9

Browse files
author
Pierre Ayoub
committed
fix(git-bulk): bad test operator
With the Bash' regexp matching operator `=~`, we need to use the Bash conditional expression evaluation command `[[ ]]`.
1 parent 165f386 commit cc083e9

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
@@ -155,7 +155,7 @@ function executBulkOp () {
155155
local curdir=$PWD
156156
local leadingpath=${curdir#"${actual}"}
157157
# do not execute if we do not want to consider a ".git" directory under a hidden directory
158-
if [ $no_follow_hidden = false ] || ! [ "$leadingpath" =~ "/." ]; then
158+
if [ $no_follow_hidden = false ] || ! [[ "$leadingpath" =~ "/." ]]; then
159159
guardedExecution "$@"
160160
fi
161161
eval cd "\"$rwsdir\"" # back to origin location of last find command

0 commit comments

Comments
 (0)