mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 08:27:08 +00:00
build: hide password input (best effort)
Signed-off-by: Jeffrey Stoke <me@arhat.dev>
This commit is contained in:
parent
dbcf6d27b0
commit
83c08489c7
@ -15,7 +15,7 @@ expect {
|
||||
}
|
||||
}
|
||||
|
||||
send -- "login\r"
|
||||
send "login\r"
|
||||
expect {
|
||||
"Username: " {
|
||||
# login start, enter username
|
||||
@ -26,7 +26,7 @@ expect {
|
||||
}
|
||||
}
|
||||
|
||||
send -- "$env(PROTONMAIL_USERNAME)\r"
|
||||
send "$env(PROTONMAIL_USERNAME)\r"
|
||||
expect {
|
||||
"Password: " {
|
||||
# username entered, enter password
|
||||
@ -37,7 +37,10 @@ expect {
|
||||
}
|
||||
}
|
||||
|
||||
send -- "$env(PROTONMAIL_PASSWORD)\r"
|
||||
stty -echo
|
||||
sleep 1
|
||||
send "$env(PROTONMAIL_PASSWORD)\r"
|
||||
stty echo
|
||||
expect {
|
||||
"was added successfully." {
|
||||
# login ok
|
||||
|
||||
Loading…
Reference in New Issue
Block a user