fix bash conditional

The previous conditional always evaluated to true.  Oops.