Eric Torres 144190b1c9 Revert "Change interpreter from #!/usr/bin/bash to #!/bin/bash"
This reverts commit 9c776c34001939420b09f04453123de6d17c0d6a.
2020-06-22 11:17:29 -07:00

15 lines
333 B
Bash
Executable File

#!/usr/bin/bash
# Export a key to a given keyfile
echo -n "Enter the name of the output file: "
read -r keyfileoutput
echo -n "Enter the user ID or email: "
read -r userid
if [[ -z "${keyfileoutput}" || -z "${userid}" ]]; then
echo "Insufficient info."
else
gpg --output "${keyfileoutput}" --armor --export "${userid}"
fi