fix while statement on bash.p4d