結果 : check if previous command failed bash