mrako / wait-for

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Indefinite timeout not supported

axisofentropy opened this issue · comments

The README and the usage both say that a timeout of 0 will retry forever. I don't see this in the code nor in my own experience.

I'm having the same issue, tested it with
./wait-for -t 0 localhost:80

Instrant result:
Operation timed out

Agreed.

  for i in `seq $TIMEOUT` ; do

seq 0 actually generates 1 0 which means that the loop is ran twice.

any update on this?