bash: remove redundant conditional