Function In Sh Script If Statement