From 5010927559bccb7b4ea5f387b8d49052967970ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jerome=20K=C3=BCttner?= <12213711+jkuettner@users.noreply.github.com> Date: Sat, 8 Jan 2022 21:45:03 +0100 Subject: [PATCH] fix "syntax error in expression" --- AAXtoMP3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index 3b8cb9f..2a88bd1 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -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