結果 : bash check exit code of function