From 57923363685b130f22613fe3f6646ff799f0067d Mon Sep 17 00:00:00 2001 From: Jakub Date: Thu, 21 May 2026 20:43:57 +0800 Subject: [PATCH] Prevent resending prompt properly --- userland/aws.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userland/aws.el b/userland/aws.el index 3137ff2..c0729c5 100644 --- a/userland/aws.el +++ b/userland/aws.el @@ -65,9 +65,9 @@ (unless prompt-sent (let ((buffer-contents (buffer-string))) (when (string-match-p prompt-regexp buffer-contents) + (setq prompt-sent t) (let ((token (read-passwd "MFA token: "))) - (process-send-string proc (concat token "\n")) - (setq prompt-sent t)))))))))) + (process-send-string proc (concat token "\n"))))))))))) (defun aws-sign-in () "Sign in with AWS."