Comment Comment by lpsz And this is why it is important to write something like set -eu on top of your bash scripts -- execution will stop on errors (non-zero retvals) and on undefined variables. parent lpsz 11 years ago