From 9b0b9a4b4add745b5726c1521aa19d0794a798c4 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Tue, 2 Sep 2025 22:38:27 +0000 Subject: [PATCH] Update slated_output.bash --- slated_output.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/slated_output.bash b/slated_output.bash index 82931c4..024d77b 100644 --- a/slated_output.bash +++ b/slated_output.bash @@ -72,6 +72,11 @@ INPUT_FILE="$1" INPUT_BASENAME=$(basename -- "$INPUT_FILE") OUTPUT_FILE=$(dirname -- "$INPUT_FILE")/"${INPUT_BASENAME%.*}_slated.mov" +# Escape title, client and message fields in case they have quotes or colons +TITLE=$(echo -n $TITLE | ffescape -p "" -s "':" | ffescape -p "") +CLIENT=$(echo -n $CLIENT | ffescape -p "" -s "':" | ffescape -p "") +MESSAGE=$(echo -n $MESSAGE | ffescape -p "" -s "':" | ffescape -p "") + SLATE_AUDIO="-f lavfi -t $SLATE_DURATION -i " if [ -z $SLATE_TONE ]; then SLATE_AUDIO+=anullsrc=r=48000:cl=stereo,aformat=sample_fmts=s32:\