It seems setting `-e` here is a bad idea.