UNCLASSIFIED - NO CUI

Skip to content

Avoid a grep false positive with $NAME

Joseph Sible requested to merge name-grep-false-positive into master

If your username is the same as your value of $NAME, then there will be a false positive match on your home directory in the path of the pubring file, which will make the value of $fp start with a newline, and will make the sed command fail with this error: "sed: 1: "s/pgp: FALSE_KEY_HERE/p ...": unescaped newline inside substitute pattern" Fix it by matching on the key comment instead.

Merge request reports