busybox: quit countdown timers on keyboard input

This commit is contained in:
chewitt 2018-10-11 09:36:22 +01:00 committed by Christian Hewitt
parent 86e23ee1ed
commit 5983d488b2

View File

@ -144,7 +144,7 @@ ProgressTask_Countdown() {
while [ ${countfrom} -gt 0 ]; do
echo ${countfrom} | awk '{ printf "\b\b%2d", $1 }'
sleep 1
read -r -s -t1 && break
countfrom=$((countfrom - 1))
done