From da6711434dce4d5071804c9c9c2fb5fd89a3b9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fearocanity=20=28=E3=81=91=E3=82=8D=E3=81=95=E3=82=93=29?= <91414643+fearocanity@users.noreply.github.com> Date: Tue, 28 Nov 2023 14:39:50 +0900 Subject: [PATCH] fix: printing subs even without speech --- scripts/process.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/process.sh b/scripts/process.sh index ef255e7dee..937b279c74 100644 --- a/scripts/process.sh +++ b/scripts/process.sh @@ -126,6 +126,7 @@ process_multisubs(){ [[ -e "${i}" ]] || continue [[ "${i}" =~ .*_([A-Za-z]{2})\.(srt|ass|ssa)$ ]] || continue process_subs "${1}" "${i}" + [[ -z "${message_comment}" ]] && { unset message_craft ; continue ;} if [[ "${BOOL_IS_OPEDSONG}" = "1" ]]; then message_comment+="Lyrics [$(sed -E 's/.*_([A-Za-z]{2})\.(srt|ass|ssa)$/\1/g' <<< "${i}" | tr '[:lower:]' '[:upper:]')]:"$'\n'"${message_craft}"$'\n' else