mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
ZEPPELIN-207: travis-ci build log is too long to be displayed
This commit is contained in:
parent
aa2568dbea
commit
3ee6a155ac
1 changed files with 0 additions and 25 deletions
|
|
@ -1,25 +0,0 @@
|
|||
#/bin/bash
|
||||
function ProgressBar {
|
||||
let _progress=(${1}*100/${2}*100)/100
|
||||
let _done=(${_progress}*4)/10
|
||||
let _left=40-$_done
|
||||
_done=$(printf "%${_done}s")
|
||||
_left=$(printf "%${_left}s")
|
||||
|
||||
printf "\rProgress : [${_done// /#}${_left// /-}] ${_progress}%%"
|
||||
|
||||
}
|
||||
|
||||
# Variables
|
||||
_start=1
|
||||
|
||||
# This accounts as the "totalState" variable for the ProgressBar function
|
||||
_end=100
|
||||
|
||||
# Proof of concept
|
||||
for number in $(seq ${_start} ${_end})
|
||||
do
|
||||
sleep 0.1
|
||||
ProgressBar ${number} ${_end}
|
||||
done
|
||||
printf '\nFinished!\n'
|
||||
Loading…
Reference in a new issue