progressSpin: better progress
Show number of stuff updated Updates every 100 stuff
This commit is contained in:
parent
0ce0d18ab8
commit
9d24be962b
@ -11,5 +11,15 @@ progressSpin() {
|
||||
30) echo -n $'\b\\' ;;
|
||||
*) ;;
|
||||
esac
|
||||
if ! (( count % 100 ))
|
||||
then
|
||||
echo -n " $count"
|
||||
until (( backspace > ${#count} ))
|
||||
do
|
||||
(( backspace++ ))
|
||||
echo -n $'\b'
|
||||
done
|
||||
unset backspace
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user