#!/bin/bash signatures="$( \ curl 'https://kernel.org/' 2>/dev/null | \ tr '"' '\n' | \ grep '\.sign$' | \ head -n1 )" for s in ${signatures} do curl "$s" 2> /dev/null | \ gpg --verify - "$0" done