結果 : how to capture exit code in shell script