From e3c8359e4ee09cad618e93467554703ebec0edf5 Mon Sep 17 00:00:00 2001 From: spacewander Date: Tue, 19 Jul 2022 14:37:33 +0800 Subject: [PATCH] git-bulk: previous refactor redirected $PWD to stderr by mistake Fix #986 Signed-off-by: spacewander --- bin/git-bulk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-bulk b/bin/git-bulk index f6c8e07ce..9d98c2c8b 100755 --- a/bin/git-bulk +++ b/bin/git-bulk @@ -108,7 +108,7 @@ function wsnameToCurrent () { while read workspace; do if [ -z "$workspace" ]; then continue; fi parseWsName "$workspace" - if echo 1>&2 "$PWD" | grep -o -q "$rwsdir"; then wsname="$rwsname" && return; fi + if echo "$PWD" | grep -o -q "$rwsdir"; then wsname="$rwsname" && return; fi done <<< "$(echo "$(listall)")" # when here then not in workspace dir echo 1>&2 "error: you are not in a workspace directory. your registered workspaces are:" && \