From 9541d12a1fdc83958bb5d1f2d47f7846b60769ae Mon Sep 17 00:00:00 2001 From: Levon Date: Sun, 12 May 2024 11:51:41 -0500 Subject: [PATCH] fix wrong output --- scripts/recc_encode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/recc_encode.sh b/scripts/recc_encode.sh index 76bcd6d..4e3ace1 100755 --- a/scripts/recc_encode.sh +++ b/scripts/recc_encode.sh @@ -103,7 +103,7 @@ while getopts "$OPTS" flag; do done # allow optional output filename -if [[ "$#" -eq $MAX_OPT ]]; then +if [[ $(($# % 2)) != 0 ]]; then OUTPUT="${@: -1}" else OUTPUT="${HOME}/av1_${INPUT}"