I don't like how it's adding more conditionals and complexity to an already fairly complex shell script. I've commented as such on the review. -- Sean M. Collins