Article 5F7CN replace messages with progress bar, or dots

replace messages with progress bar, or dots

by
aristosv
from LinuxQuestions.org on (#5F7CN)
I am using this to check the status of a machine while is being build, so that I know when it's completed.

Code:while true
do
if [[ $(curl -s -H "Authorization: Bearer $apikey" $apiurl/instances | jq ".instances[] | select(.id==\"$machineid\") | .power_status") = *running* && $(curl -s -H "Authorization: Bearer $apikey" $apiurl/instances | jq ".instances[] | select(.id==\"$machineid\") | .server_status") = *installingbooting* ]]
then
echo "server is ready"
break
else
echo "server is being build"
fi
doneIt takes about a minute to build it, but until then it keeps sending "server is being build" messages.

Is there a way to convert it to a progress bar, or perhaps dots? Just to make it look better. The functionality is ok.latest?d=yIl2AUoC8zA latest?i=oNxnZ934Ecc:gOuvu9b-4hg:F7zBnMy latest?i=oNxnZ934Ecc:gOuvu9b-4hg:V_sGLiP latest?d=qj6IDK7rITs latest?i=oNxnZ934Ecc:gOuvu9b-4hg:gIN9vFwoNxnZ934Ecc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments