From ea538165cdefb8d4e3c9d5ffcd41c71e37d1a184 Mon Sep 17 00:00:00 2001 From: Dave Steinberg Date: Fri, 16 Jul 2021 15:32:14 +0000 Subject: [PATCH] use readline to read the MFA token, so backspace etc works in silent mode --- bash/aws_functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/aws_functions b/bash/aws_functions index 209533d719..bb18cc81b2 100644 --- a/bash/aws_functions +++ b/bash/aws_functions @@ -15,7 +15,7 @@ refresh_sts_creds () { if [ "$MFA_SERIAL" != "none" ] ; then if [ "$1" = "" ] ; then echo -n "MFA Code: " - read -s MFA_TOKEN + read -es MFA_TOKEN echo else MFA_TOKEN=$1