結果 : how to check exit code of previous command bash