TOOLS: shellcheck: remove '$' on variables in $(()) expansion

This commit is contained in:
Ben Boeckel 2014-09-15 20:49:47 -04:00 committed by wm4
parent ec2c6a17dc
commit 45e2345a7f
2 changed files with 9 additions and 9 deletions

View File

@ -85,7 +85,7 @@ case "$verdict" in
[ -n "$ILDETECT_RUN_INTERLACED_ONLY" ] || \
$ILDETECT_MPV "$@"
r=$?
[ $r -eq 0 ] || exit $(($r | 16))
[ $r -eq 0 ] || exit $((r | 16))
exit 0
;;
interlaced-tff)
@ -95,14 +95,14 @@ case "$verdict" in
[ -n "$ILDETECT_DRY_RUN" ] || \
$ILDETECT_MPV "$@" --vf-pre=pullup --field-dominance=top
r=$?
[ $r -eq 0 ] || exit $(($r | 16))
[ $r -eq 0 ] || exit $((r | 16))
exit 1
;;
*)
[ -n "$ILDETECT_DRY_RUN" ] || \
$ILDETECT_MPV "$@" --vf-pre=yadif --field-dominance=top
r=$?
[ $r -eq 0 ] || exit $(($r | 16))
[ $r -eq 0 ] || exit $((r | 16))
exit 2
;;
esac
@ -114,14 +114,14 @@ case "$verdict" in
[ -n "$ILDETECT_DRY_RUN" ] || \
$ILDETECT_MPV "$@" --vf-pre=pullup --field-dominance=bottom
r=$?
[ $r -eq 0 ] || exit $(($r | 16))
[ $r -eq 0 ] || exit $((r | 16))
exit 1
;;
*)
[ -n "$ILDETECT_DRY_RUN" ] || \
$ILDETECT_MPV "$@" --vf-pre=yadif --field-dominance=bottom
r=$?
[ $r -eq 0 ] || exit $(($r | 16))
[ $r -eq 0 ] || exit $((r | 16))
exit 2
;;
esac
@ -133,14 +133,14 @@ case "$verdict" in
[ -n "$ILDETECT_DRY_RUN" ] || \
$ILDETECT_MPV "$@" --vf-pre=pullup
r=$?
[ $r -eq 0 ] || exit $(($r | 16))
[ $r -eq 0 ] || exit $((r | 16))
exit 1
;;
*)
[ -n "$ILDETECT_DRY_RUN" ] || \
$ILDETECT_MPV "$@" --vf-pre=yadif
r=$?
[ $r -eq 0 ] || exit $(($r | 16))
[ $r -eq 0 ] || exit $((r | 16))
exit 2
;;
esac

View File

@ -123,7 +123,7 @@ __midentify__main() {
if [ "$fileindex" -gt 0 ]; then
nextprefix="${prefix%${fileindex}_}"
fi
fileindex="$(($fileindex+1))"
fileindex="$((fileindex+1))"
nextprefix="${nextprefix}${fileindex}_"
for key in $allprops; do
key="$(printf '%s\n' "$key" | tr - _)"
@ -133,7 +133,7 @@ __midentify__main() {
if [ "$fileindex" -gt 0 ]; then
echo
fi
fileindex="$(($fileindex+1))"
fileindex="$((fileindex+1))"
fi
;;
X-MIDENTIFY:\ *)