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

View File

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