#!/bin/bash PUBKEY_URL="https://cygwin.com/key/pubring.asc" TMP=$( mktemp ) function __o { rm $TMP; } trap __o EXIT curl "$PUBKEY_URL" > $TMP gpg2 --import $TMP