Skip to content

Commit

Permalink
use readline to read the MFA token, so backspace etc works in silent …
Browse files Browse the repository at this point in the history
…mode
  • Loading branch information
redterror committed Jul 16, 2021
1 parent d2f75ca commit ea53816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash/aws_functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea53816

Please sign in to comment.