The main reason we have the first install warning still is that we fill $HOME with bash related scripts that will only get executed on the next login shell. Simplify things by keeping MAYBE_FIRST_START logic in one file and make it depend on wether $HOME was missing at the beginning.
14 lines
300 B
Plaintext
14 lines
300 B
Plaintext
maybe_init_keyring ()
|
|
{
|
|
if [ ! -d /etc/pacman.d/gnupg ]
|
|
then
|
|
export GNUPGHOME="$(pacman-conf.exe gpgdir)"
|
|
/usr/bin/pacman-key --init
|
|
/usr/bin/pacman-key --populate msys2 || true
|
|
/usr/bin/pacman-key --refresh-keys || true
|
|
/usr/bin/gpgconf --kill all
|
|
fi
|
|
}
|
|
|
|
maybe_init_keyring
|