16 lines
391 B
Bash
Executable File
16 lines
391 B
Bash
Executable File
# 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
|
|
|