De "ajuda continuar":
continue: continue [n]
Resume for, while, or until loops.
Resumes the next iteration of the enclosing FOR, WHILE or UNTIL loop.
If N is specified, resumes the Nth enclosing loop.
Exit Status:
The exit status is 0 unless N is not greater than or equal to 1.
Então, você deseja que continue ou continue 1 vá para a próxima iteração de until ou continue 2 para ir para a próxima iteração de while .