fix: Correct binary comparisons for WebP files
This commit is contained in:
parent
b695aefa42
commit
af0e32eb68
16 changed files with 11 additions and 10 deletions
2
friendica-fix-avatar-permissions.sh
Normal file → Executable file
2
friendica-fix-avatar-permissions.sh
Normal file → Executable 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue