結果 : bash get exit code from function