fix "syntax error in expression"

This commit is contained in:
Jerome Küttner 2022-01-08 21:45:03 +01:00
parent b87b08ee6a
commit 5010927559

View File

@ -801,7 +801,7 @@ do
extra_crop_cover=''
cover_width=$(ffprobe -i "${cover_file}" 2>&1 | grep -Po "[0-9]+(?=x[0-9]+)")
if [ "$(( ${cover_width} % 2 ))" == "1" ]; then
if (( ${cover_width} % 2 == 1 )); then
if [ "$((${loglevel} > 1))" == "1" ]; then
log "Cover ${cover_file} has odd width ${cover_width}, setting extra_crop_cover to make even."
fi