結果 : shell script check previous command status