From 5fd8660f5ff4107b7cea05623eaae505fed6b6e5 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 15 Sep 2014 20:51:00 -0400 Subject: TOOLS: idet: use quotes for the verdict value ShellCheck warns about "vara-varb" about not being in $(()), but we actually want the literal string, so quote it. Also fix a typo. --- TOOLS/idet.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/TOOLS/idet.sh b/TOOLS/idet.sh index 50b5bbcf83..9a2e698ea9 100755 --- a/TOOLS/idet.sh +++ b/TOOLS/idet.sh @@ -52,27 +52,27 @@ judge() [ -n "$ILDETECT_FORCE_RUN" ] || exit 8 echo >&2 "Assuming interlacing." if [ "$tff" -gt $((bff * 10)) ]; then - verdict=interlaced-tff + verdict="interlaced-tff" elif [ "$bff" -gt $((tff * 10)) ]; then - verdict=interlaced-bff + verdict="interlaced-bff" else - verdict=interlaced + verdict="interlaced" fi elif [ $((interlaced * 20)) -gt "$progressive" ]; then # At least 5% of the frames are interlaced! if [ "$tff" -gt $((bff * 10)) ]; then - verdict=interlaced-tff + verdict="interlaced-tff" elif [ "$bff" -gt $((tff * 10)) ]; then - verdict=interlaced-bff + verdict="interlaced-bff" else echo >&2 "ERROR: Content is interlaced, but can't determine field order." [ -n "$ILDETECT_FORCE_RUN" ] || exit 8 echo >&2 "Assuming interlacing with default field order." - verdict=interlaced + verdict="interlaced" fi else - # Likely progrssive. - verdict=progressive + # Likely progressive + verdict="progressive" fi echo "$verdict" -- cgit v1.2.3