You can't just remove the 'exit', you also have to remove the 'else' before it b/c bash does not like an empty if/else clause.

anyway, glad it got sorted!