Update dockcheck.sh
modified progress_bar() function to not output any text
This commit is contained in:
parent
d6e3b1dcf7
commit
e4fae7128e
13
dockcheck.sh
13
dockcheck.sh
@ -133,15 +133,10 @@ datecheck() {
|
||||
}
|
||||
|
||||
progress_bar() {
|
||||
QueCurrent="$1"
|
||||
QueTotal="$2"
|
||||
((Percent=100*QueCurrent/QueTotal))
|
||||
((Complete=50*Percent/100)) # change first number for width (50)
|
||||
((Left=50-Complete)) # change first number for width (50)
|
||||
BarComplete=$(printf "%${Complete}s" | tr " " "#")
|
||||
BarLeft=$(printf "%${Left}s" | tr " " "-")
|
||||
[[ "$QueTotal" == "$QueCurrent" ]] || printf "\r[%s%s] %s/%s " "$BarComplete" "$BarLeft" "$QueCurrent" "$QueTotal"
|
||||
[[ "$QueTotal" == "$QueCurrent" ]] && printf "\r[%b%s%b] %s/%s \n" "$c_teal" "$BarComplete" "$c_reset" "$QueCurrent" "$QueTotal"
|
||||
#Replaced progress bar function with nonsense so I can get good readouts stout
|
||||
if [ a == b ]; then
|
||||
echo "hello"
|
||||
fi
|
||||
}
|
||||
|
||||
### Version check & initiate self update
|
||||
|
Loading…
Reference in New Issue
Block a user