We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4c8ad06 + 46e3581 commit 6a88021Copy full SHA for 6a88021
1 file changed
t/lib-git-daemon.sh
@@ -31,19 +31,19 @@ start_git_daemon() {
31
>&3 2>git_daemon_output &
32
GIT_DAEMON_PID=$!
33
{
34
- read line
+ read line <&7
35
echo >&4 "$line"
36
- cat >&4 &
+ cat <&7 >&4 &
37
+ } 7<git_daemon_output &&
38
- # Check expected output
39
- if test x"$(expr "$line" : "\[[0-9]*\] \(.*\)")" != x"Ready to rumble"
40
- then
41
- kill "$GIT_DAEMON_PID"
42
- wait "$GIT_DAEMON_PID"
43
- trap 'die' EXIT
44
- error "git daemon failed to start"
45
- fi
46
- } <git_daemon_output
+ # Check expected output
+ if test x"$(expr "$line" : "\[[0-9]*\] \(.*\)")" != x"Ready to rumble"
+ then
+ kill "$GIT_DAEMON_PID"
+ wait "$GIT_DAEMON_PID"
+ trap 'die' EXIT
+ error "git daemon failed to start"
+ fi
47
}
48
49
stop_git_daemon() {
0 commit comments