From: Paul Hänsch Date: Thu, 28 Oct 2021 14:13:15 +0000 (+0200) Subject: suppress error message on unimportant race condition X-Git-Url: https://git.plutz.net/?p=rawnet;a=commitdiff_plain;h=98db2366d0f41f19af176342e3fab3e90eff2733 suppress error message on unimportant race condition --- diff --git a/upload.sh b/upload.sh index f9e4296..0571b18 100755 --- 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 '
%iMB / %iMB
\n' \