]> git.plutz.net Git - rawnet/commitdiff
suppress error message on unimportant race condition
authorPaul Hänsch <paul@plutz.net>
Thu, 28 Oct 2021 14:13:15 +0000 (16:13 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 28 Oct 2021 14:13:15 +0000 (16:13 +0200)
upload.sh

index f9e42965b7b36a864ada0fe983c22fdf2887364d..0571b186926ee8eb2ab0f1f7e1be4eb232fc6c7b 100755 (executable)
--- a/upload.sh
+++ b/upload.sh
@@ -46,7 +46,7 @@ frame_uploadprogress() {
   while [  ! -f "${VIDEO_FILE}" -a ! -f "${VIDEO_FILE}.upload" ]; do
     sleep 1
   done
-  read size <"${VIDEO_FILE}.upload"
+  read size <"${VIDEO_FILE}.upload" 2>&-
   while [ -f "${VIDEO_FILE}.upload" ]; do
     stat="$(stat -c %s "$VIDEO_FILE" 2>&-)"
     printf '<div class=progress><div class=bar style="width:%i%%;"></div><div class=count>%iMB / %iMB</div></div>\n' \