Skip to content

Commit abea12a

Browse files
authored
Merge pull request #140 from archlinux/null-byte-warning
Fix null byte warning if _gnupg/ exists but root/ doesn't
2 parents 9810a02 + ed1b696 commit abea12a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repro.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function init_gnupg() {
7777
# Ensure signing key is available
7878
# This works on debian
7979
KEYID=3E80CA1A8B89F69CBA57D98A76A5EF9054449A5C
80-
if [ -z "$(gpg --export "$KEYID" 2>/dev/null)" ]; then
80+
if [ -z "$(gpg --armor --export "$KEYID" 2>/dev/null)" ]; then
8181
gpg --keyserver=keys.openpgp.org --recv-keys "$KEYID"
8282
fi
8383
}

0 commit comments

Comments
 (0)