optimize cloud install.sh; (#4153)

add account gift support float ratios;
default price is reduced to 30%.
This commit is contained in:
Jiahui
2023-10-24 12:02:43 +08:00
committed by GitHub
parent 827e892633
commit 099f0f8258
4 changed files with 30 additions and 24 deletions
+10 -8
View File
@@ -271,14 +271,16 @@ collect_input() {
done
fi
if [[ $single != "y" ]]; then
while :; do
read -p "$(get_prompt "input_node_ips")" node_ips
if validate_ips "$node_ips"; then
break
else
get_prompt "invalid_ips"
fi
done
if [[ -z "$node_ips" ]]; then
while :; do
read -p "$(get_prompt "input_node_ips")" node_ips
if validate_ips "$node_ips"; then
break
else
get_prompt "invalid_ips"
fi
done
fi
read -p "$(get_prompt "ssh_private_key")" ssh_private_key
if [[ -z "$ssh_private_key" ]]; then