]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsa-info.sh: Remove progress spinner during upload without dialog
authorDavid Ward <david.ward@ll.mit.edu>
Sat, 21 Dec 2019 05:32:07 +0000 (00:32 -0500)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Jan 2020 13:04:40 +0000 (14:04 +0100)
The spinner did not actually provide information about the status
of the file upload, and caused other problems: it would repeatedly
spawn new pgrep processes (without a delay between them), and it
blocked the script if any wget process was running on the system.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
alsa-info/alsa-info.sh

index a02864d0a69dbd1016813a1eb67bcb38952166ee..9bc8c38a7ac6cf19b447b21c5ab4d6ee5e6ad6ed 100755 (executable)
@@ -857,16 +857,7 @@ else
        wget -O - --tries=5 --timeout=60 --post-file=$FILE http://pastebin.ca/quiet-paste.php?api=$PASTEBINKEY &>$TEMPDIR/wget.tmp &
 fi
 
-#Progess spinner for wget transfer.
-i=1
-sp="/-\|"
-echo -n ' '
-while pgrep wget &>/dev/null
-do
-       echo -en "\b${sp:i++%${#sp}:1}"
-done
-
-echo -e "\b Done!"
+echo -e " Done!"
 echo ""
 
 fi # dialog