shell script fail checks