fix shell syntax error. add missing `then'.