The detection pattern starts with --, so grep parsed it as an option and exited 2; the negation made the early return always true and every XML was deployed untransformed, keeping the owner's NVIDIA device UUID on hosts that have no such card.
The detection pattern starts with --, so grep parsed it as an option and exited 2; the negation made the early return always true and every XML was deployed untransformed, keeping the owner's NVIDIA device UUID on hosts that have no such card.