Added pacifier dots to the waiting loop of -plug_test

This commit is contained in:
Thomas Schmitt 2019-11-30 15:59:28 +01:00
parent b8f77670d9
commit b0db123119
1 changed files with 3 additions and 1 deletions

View File

@ -247,7 +247,7 @@ plug_in_watcher() {
echo "Step 2:"
echo "Please plug in the desired target device and then press the Enter key."
read dummy
echo "Waiting up to 10 seconds for a new device to be listed ..."
echo -n "Waiting up to 10 seconds for a new device to be listed ..."
end_time="$(expr $(date +'%s') + 10)"
while test $(date +'%s') -le "$end_time"
do
@ -255,6 +255,7 @@ plug_in_watcher() {
if test "$old_device_list" = "$new_device_list"
then
sleep 1
echo -n '.'
else
for i in $new_device_list
do
@ -267,6 +268,7 @@ plug_in_watcher() {
done
fi
done
echo
if test -z "$found_devices"
then
echo "SORRY: No new candidate device was found." >&2