結果 : bash check return code from function