結果 : check previous command status in shell script