fix bash conditional

Previous conditional always evaluated to true.  Oops.