shell script exit code if statement