Update dockcheck.sh

modified progress_bar() function to not output any text
This commit is contained in:
zepheris 2024-05-16 16:39:50 +00:00
parent d6e3b1dcf7
commit e4fae7128e

View File

@ -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