Fixed missing "while" loop

Causing installer to hang upon completion and output
```
/dev/fd/63: line 446: break: only meaningful in a `for', `while', or `until' loop
/dev/fd/63: line 449: syntax error near unexpected token `done'
/dev/fd/63: line 449: `done' 
```