Commit 548d01e8 authored by Daniel STAN's avatar Daniel STAN

petit script d'import de signatures depuis un mail

parent e1f857d1
#!/bin/sh
if [ -z "$1" ]; then
echo "Give me a mail";
exit 1;
fi
gpg -d $1 | sed '/-----BEGIN PGP PUBLIC KEY BLOCK-----/!d; : proc {n; /-----END PGP PUBLIC KEY BLOCK-----/!b proc}' | gpg --import
if echo "$1" | grep -vq ',S$'; then
mv $1 ${1}S
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment