結果 : check exit code of function bash