I think appending an explicit || true for commands that are ok to fail makes more sense. Having state you need to keep track of just makes things less readable.