Skip to content

Commit

Permalink
Merge pull request #140 from archlinux/null-byte-warning
Browse files Browse the repository at this point in the history
Fix null byte warning if _gnupg/ exists but root/ doesn't
  • Loading branch information
kpcyrd authored Jan 26, 2025
2 parents 9810a02 + ed1b696 commit abea12a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repro.in
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function init_gnupg() {
# Ensure signing key is available
# This works on debian
KEYID=3E80CA1A8B89F69CBA57D98A76A5EF9054449A5C
if [ -z "$(gpg --export "$KEYID" 2>/dev/null)" ]; then
if [ -z "$(gpg --armor --export "$KEYID" 2>/dev/null)" ]; then
gpg --keyserver=keys.openpgp.org --recv-keys "$KEYID"
fi
}
Expand Down

0 comments on commit abea12a

Please sign in to comment.