Unverified Commit 98500bfd authored by xoviat's avatar xoviat Committed by GitHub
Browse files

[common] improve spinner UI

parent 01eea2ea
...@@ -23,13 +23,15 @@ function start_spinner { ...@@ -23,13 +23,15 @@ function start_spinner {
return return
fi fi
>&2 echo "Building libraries..."
# Start a process that runs as a keep-alive # Start a process that runs as a keep-alive
# to avoid travis quitting if there is no output # to avoid travis quitting if there is no output
(while true; do (while true; do
>&2 echo "Building libraries..."
sleep 60 sleep 60
>&2 echo "Still building..."
done) & done) &
MB_SPINNER_PID=$! MB_SPINNER_PID=$!
disown
} }
function stop_spinner { function stop_spinner {
...@@ -39,6 +41,8 @@ function stop_spinner { ...@@ -39,6 +41,8 @@ function stop_spinner {
kill $MB_SPINNER_PID kill $MB_SPINNER_PID
unset MB_SPINNER_PID unset MB_SPINNER_PID
>&2 echo "Building libraries finished."
} }
function abspath { function abspath {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment