f99aq8ove (owner)

Revisions

gist: 55443 Download_button fork
public
Description:
get launchpad PPA's keys
Public Clone URL: git://gist.github.com/55443.git
Embed All Files: show embed
get_launchpad_keys.sh #
1
2
3
4
5
#!/bin/sh
 
for i in `perl -nle'print "https://launchpad.net/~$1/+archive/ppa" if m!deb\s+http://ppa\.launchpad\.net/(.+?)/!' /etc/apt/sources.list`; do
wget -q -O- "`wget -q -O- "$i" | perl -nle'print "http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x$1" if m!"http://keyserver.ubuntu.com:11371/pks/lookup\?search=.+?([[:xdigit:]]{16})&!'`" | sudo apt-key add -
done