#!/bin/bash
## Version 0.1
#$1 = key
if [ $# -lt 1 ]; then
echo "usage: neuerkey key"
exit 1
else
gpg --keyserver subkeys.pgp.net --recv-keys $1
gpg --armor --export $1 | apt-key add -
echo "Alles erledigt"
echo
fi
exit 0
#!/bin/bash
## Version 0.1
#$1 = key
if [ $# -lt 1 ]; then
echo "usage: neuerkey key"
exit 1
else
gpg --keyserver subkeys.pgp.net --recv-keys $1
gpg --armor --export $1 | apt-key add -
echo "Alles erledigt"
echo
fi
exit 0