summaryrefslogtreecommitdiffstats
path: root/TOOLS/idet.sh
diff options
context:
space:
mode:
authorshdown <shdownnine@gmail.com>2014-09-16 21:01:35 +0400
committerwm4 <wm4@nowhere>2014-09-17 00:00:05 +0200
commitf2c46bc1d1c17fb26f1258fef1c7a9aa12e74590 (patch)
treeb3929c50142872e570ac997edc6d194836a0e810 /TOOLS/idet.sh
parent02d0b2f31ca49649c73e01438b85c29dda709fdb (diff)
downloadmpv-f2c46bc1d1c17fb26f1258fef1c7a9aa12e74590.tar.bz2
mpv-f2c46bc1d1c17fb26f1258fef1c7a9aa12e74590.tar.xz
TOOLS: eliminate echoes with variable substitutions
echo behaviour with backslash escapes seems to be non-portable: dash does expand such an escapes and bash does not, so use cat/printf instead.
Diffstat (limited to 'TOOLS/idet.sh')
-rwxr-xr-xTOOLS/idet.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/TOOLS/idet.sh b/TOOLS/idet.sh
index 9a2e698ea9..c3b30080a6 100755
--- a/TOOLS/idet.sh
+++ b/TOOLS/idet.sh
@@ -39,7 +39,7 @@ judge()
case "$tff$bff$progressive$undetermined" in
*[!0-9]*)
- echo >&2 "ERROR: Unrecognized idet output: $out"
+ printf >&2 'ERROR: Unrecognized idet output: %s\n' "$out"
exit 16
;;
esac
@@ -75,7 +75,7 @@ judge()
verdict="progressive"
fi
- echo "$verdict"
+ printf '%s\n' "$verdict"
}
judge "$@" --vf-clr