feat: ✨ Add gpg-learn-serialno command
This commit is contained in:
commit
18356b4c9d
15
Yubikey/gpg-learn-serialno.sh
Executable file
15
Yubikey/gpg-learn-serialno.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
# Print the command to be executed
|
||||||
|
echo "Executing command: gpg-connect-agent 'scd serialno' 'learn --force' /bye"
|
||||||
|
|
||||||
|
# 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-connect-agent "scd serialno" "learn --force" /bye
|
||||||
|
else
|
||||||
|
# Do nothing
|
||||||
|
echo "Command not executed."
|
||||||
|
fi
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user