changeset 29627:d8d2b355825c

Fix bashism: Use '$(( ))' syntax instead of '(( ))' for arithmetic expressions.
author diego
date Thu, 10 Sep 2009 18:29:34 +0000
parents 2a2bc7ee5b81
children e193fb0e07e7
files TOOLS/mencvcd.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/mencvcd.sh	Thu Sep 10 17:30:02 2009 +0000
+++ b/TOOLS/mencvcd.sh	Thu Sep 10 18:29:34 2009 +0000
@@ -345,8 +345,8 @@
 [ $mp3 -eq 1 -a $abrset -eq 0 ] && abr=128
 
 # audio sample rate in kHz
-((a=$asr / 1000))
-((b=$asr % 1000))
+a=$(($a=$asr / 1000))
+b=$(($b=$asr % 1000))
 [ $b -le 9 ] && b="00$b00"
 [ $b -le 99 ] && b="0$b00"
 kasr="$a.$b"