The previous implementation directly interpolated the commit message into the shell script, which broke when messages contained newlines. Words like "not" were being interpreted as shell commands. Fix: Pass commit message via environment variable and write to temp file before grepping, avoiding shell injection issues.