passing params to bash function