From 00a73b968e80df829b4f43e197a5481a3ca09d9c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 22 Sep 2014 12:17:11 +0200 Subject: Fix bashism (dash ${} fails with newlines and drops double-quotes). --- localvideowebencode | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'localvideowebencode') diff --git a/localvideowebencode b/localvideowebencode index 105554a..cd7fc96 100755 --- a/localvideowebencode +++ b/localvideowebencode @@ -391,19 +391,15 @@ __width="${_width:+ width=\"$_width\"}" __height="${_height:+ height=\"$_height\"}" # Flash object needs extra space for controllers __heightplus=${_height:+ height=\"$(($_height+4))\"} -__ogg=${ogg:+ -} -__webm=${webm:+ -} -__mp4=${mp4:+ -} +_source_ogg="" +_source_webm="" +_source_mp4="" # TODO: resolve flash player to use [ -z "$flashplayer" ] || flash=yes [ -n "$mp4" ] || [ -z "$flash" ] || error1 "Cannot enable flash when mp4 format is disabled." -__flash=${flash:+ - - -} +_object_flash="" +_param_name="" +_param_flashvars="" __oggfile=${ogg:+open format Ogg} __webmfile=${webm:+open format WebM} __mp4file=${mp4:+closed Format MPEG-4} @@ -413,7 +409,13 @@ __mp4file=${mp4:+closed Format MPEG-4} cat >"$stem.html" < -$__mp4$__webm$__ogg$__flash$title ${flash:+ } -- cgit v1.2.3