feat: Script to export public key

This commit is contained in:
Louis Gallet 2023-12-16 17:29:09 +01:00
parent 80ae3d01fe
commit 09b0037c10
Signed by: lgallet
SSH Key Fingerprint: SHA256:qnW7pk4EoMRR0UftZLZQKSMUImbEFsiruLC7jbCHJAY

15
Yubikey/gpg-export-armored.sh Executable file
View File

@ -0,0 +1,15 @@
# Print the command to be executed
echo "Executing command: gpg --armor --export D4C61677B9CC4C9B"
# Check for user confirmation
read -p "Are you sure you want to execute this command? (y/n) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
# Execute the command
gpg --armor --export D4C61677B9CC4C9B
else
# Do nothing
echo "Command not executed."
fi