Commit f86768ab authored by Darko Poljak's avatar Darko Poljak

Merge branch 'fix_apt_key_dearmor' into 'master'

__apt_key: fix key dearmor when fetching from uri

See merge request !791
parents 9d26fbdf d147f4a8
......@@ -48,11 +48,11 @@ curl -s -L \\
-o "$keyfile" \\
"$uri"
if grep -Fq 'BEGIN PGP PUBLIC KEY BLOCK' \\
"$keyfile"
key="\$( cat "$keyfile" )"
if echo "\$key" | grep -Fq 'BEGIN PGP PUBLIC KEY BLOCK'
then
cat "$keyfile" \\
| gpg --export > "$keyfile"
echo "\$key" | gpg --dearmor > "$keyfile"
fi
EOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment