#!/bin/bash set -e keyring=$( curl -Ss 'https://mirror.archlinux32.org/x86_64/releng/' \ | tr '"' '\n' \ | grep '^archlinux32-keyring-.*-any\.pkg\.tar\.zst$' \ | grep -vwF transition \ | sort \ | tail -n1 ) curl -o "/${keyring}" "https://mirror.archlinux32.org/x86_64/releng/${keyring}" pacman -U --noconfirm "/${keyring}" rm "/${keyring}"