Skip to content

Commit 8121c97

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 27d3bd0 commit 8121c97

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 = false ] || ! [ "$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)