Replace unnecessary calls to echo and cat
Tcl's exec can send data to stdout itself, no need to call cat/echo for that usually.
This commit is contained in:
committed by
antirez
parent
e337b26050
commit
7d6bf7956e
@@ -252,7 +252,7 @@ proc start_server {options {code undefined}} {
|
||||
|
||||
while 1 {
|
||||
# check that the server actually started and is ready for connections
|
||||
if {[exec cat $stdout | grep "ready to accept" | wc -l] > 0} {
|
||||
if {[exec grep "ready to accept" | wc -l < $stdout] > 0} {
|
||||
break
|
||||
}
|
||||
after 10
|
||||
|
||||
Reference in New Issue
Block a user