1 2 3 4 5 6 7 8 9
#!/bin/sh -e case "$1" in remove|purge) if which apt-key >/dev/null; then apt-key del XXXXXXXXXX fi ;; esac