Skip to content

Commit e5d3afd

Browse files
fmore-xyzgitster
authored andcommitted
git-bisect: fix wrong usage of read(1)
Signed-off-by: Francis Moreau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e534735 commit e5d3afd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-bisect.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ bisect_next_check() {
220220
if test -t 0
221221
then
222222
printf >&2 'Are you sure [Y/n]? '
223-
case "$(read yesno)" in [Nn]*) exit 1 ;; esac
223+
read yesno
224+
case "$yesno" in [Nn]*) exit 1 ;; esac
224225
fi
225226
: bisect without good...
226227
;;

0 commit comments

Comments
 (0)