結果 : check if last command successful shell script