Fix prompt password

This commit is contained in:
Bohan Yang
2020-11-09 03:05:58 +00:00
committed by GitHub
parent c04c5b6e36
commit 79e30f94c2
+3 -1
View File
@@ -18,7 +18,9 @@ _late_command() {
} }
_prompt_password() { _prompt_password() {
[ -z "$password" ] && read -rs -p 'Password: ' password if [ -z "$password" ]; then
read -rs -p 'Password: ' password
fi
} }
ip= ip=