1 2 3 4 5 6 7
#!/bin/bash # Initializes Pacman keyring if ! find /etc/pacman.d/gnupg -mindepth 1 2>/dev/null | read -r; then pacman-key --init pacman-key --populate fi