Prevent resending prompt properly
This commit is contained in:
parent
19b852f9c0
commit
5792336368
1 changed files with 2 additions and 2 deletions
|
|
@ -65,9 +65,9 @@
|
||||||
(unless prompt-sent
|
(unless prompt-sent
|
||||||
(let ((buffer-contents (buffer-string)))
|
(let ((buffer-contents (buffer-string)))
|
||||||
(when (string-match-p prompt-regexp buffer-contents)
|
(when (string-match-p prompt-regexp buffer-contents)
|
||||||
|
(setq prompt-sent t)
|
||||||
(let ((token (read-passwd "MFA token: ")))
|
(let ((token (read-passwd "MFA token: ")))
|
||||||
(process-send-string proc (concat token "\n"))
|
(process-send-string proc (concat token "\n")))))))))))
|
||||||
(setq prompt-sent t))))))))))
|
|
||||||
|
|
||||||
(defun aws-sign-in ()
|
(defun aws-sign-in ()
|
||||||
"Sign in with AWS."
|
"Sign in with AWS."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue