結果 : bash check return value of function in if statement