Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
bxy4543 committed Oct 12, 2023
1 parent 4c61783 commit 89fc6f3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/cloud/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,13 @@ wait_cluster_ready() {
local prompt_msg=$(get_prompt "wait_cluster_ready")
while true; do
if kubectl get nodes | grep "NotReady" &> /dev/null; then
loading_animation "$prompt_msg"
loading_animation "$prompt_msg"
else
break
echo && break # new line
fi

read -t 1 -n 1 input
read -t 1 -n 1 -p "" input 2>/dev/null || true
if [[ "$input" == "1" ]]; then
break
echo && break # new line
fi
done
}
Expand Down

0 comments on commit 89fc6f3

Please sign in to comment.