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 {
|
expect {
|
||||||
"Username: " {
|
"Username: " {
|
||||||
# login start, enter username
|
# login start, enter username
|
||||||
@ -26,7 +26,7 @@ expect {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
send -- "$env(PROTONMAIL_USERNAME)\r"
|
send "$env(PROTONMAIL_USERNAME)\r"
|
||||||
expect {
|
expect {
|
||||||
"Password: " {
|
"Password: " {
|
||||||
# username entered, enter 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 {
|
expect {
|
||||||
"was added successfully." {
|
"was added successfully." {
|
||||||
# login ok
|
# login ok
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user