Bash Exit Loop If Command Lammps