結果 : shell script check if previous command successful