From 09b0037c101f466b554b6b04a6c59cd049683f0f Mon Sep 17 00:00:00 2001 From: Louis Date: Sat, 16 Dec 2023 17:29:09 +0100 Subject: [PATCH] feat: :sparkles: Script to export public key --- Yubikey/gpg-export-armored.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 Yubikey/gpg-export-armored.sh diff --git a/Yubikey/gpg-export-armored.sh b/Yubikey/gpg-export-armored.sh new file mode 100755 index 0000000..4a70489 --- /dev/null +++ b/Yubikey/gpg-export-armored.sh @@ -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 +