fix: Correct binary comparisons for WebP files

This commit is contained in:
Carlos Solís 2025-06-30 15:45:00 +00:00
parent b695aefa42
commit af0e32eb68
16 changed files with 11 additions and 10 deletions

2
friendica-fix-avatar-permissions.sh Normal file → Executable file
View file

@ -27,7 +27,7 @@ loop_1() {
elif [[ "${p}" =~ .webp ]]; then
#If file is not animated
if [[ -f "${p}" ]]; then
if grep -q -v -e "ANIM" -e "ANMF" "${p}"; then
if grep -q -a -l -e "ANIM" -e "ANMF" "${p}"; then
tmppic="/tmp/temp_$(date +%s).webp"
nice -n 10 cwebp -mt -af -quiet "${p}" -o "${tmppic}" #&> /dev/null
if [[ -f "${tmppic}" ]]; then