From 9a3774c1421544de493f0c50f279f41eac2ed292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Sol=C3=ADs?= Date: Tue, 25 Feb 2025 16:36:50 -0600 Subject: [PATCH] fix: Hide error handled later in the pipe --- friendica-fix-avatar-permissions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/friendica-fix-avatar-permissions.sh b/friendica-fix-avatar-permissions.sh index b8072c4..4d976e6 100755 --- a/friendica-fix-avatar-permissions.sh +++ b/friendica-fix-avatar-permissions.sh @@ -18,7 +18,7 @@ loop_1() { elif [[ "${p}" =~ .gif ]]; then nice -n 10 gifsicle --batch -O3 --lossy=80 --colors=255 "${p}" #&> /dev/null #Specific compression for large GIF files - while [[ $(stat -c%s "${p}" || echo 0) -ge 512000 ]]; do + while [[ $(stat -c%s "${p}" 2>/dev/null || echo 0) -ge 512000 ]]; do frameamount=$(($(exiftool -b -FrameCount "${p}" || 1) - 1)) nice -n 10 gifsicle "${p}" $(seq -f "#%g" 0 2 "${frameamount}") -O3 --lossy=80 --colors=255 -o "${p}" #&> /dev/null done