mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
17 lines
467 B
Bash
17 lines
467 B
Bash
|
function import-pubkey() {
|
||
|
echo "Importing public key ..."
|
||
|
|
||
|
gpg --import /usr/share/gnupg/94F3D3DDAC22802258FC044B6C47C753F0823002.pub || {
|
||
|
echo "p1st: Error importing pubkey!";
|
||
|
return 1;
|
||
|
}
|
||
|
echo "94F3D3DDAC22802258FC044B6C47C753F0823002:6:" | gpg --import-ownertrust || {
|
||
|
echo "p1st: Error changing trust!"
|
||
|
return 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if ! gpg --export-ownertrust | grep --quiet '^94F3D3DDAC22802258FC044B6C47C753F0823002:6:$'; then
|
||
|
import-pubkey
|
||
|
fi
|