fix bash if test