From: drowe67 Date: Mon, 16 Aug 2010 08:38:43 +0000 (+0000) Subject: got menu.sh working again by using bash shell, guess this handles arrays OK X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=072ceac893237cf57685c35ec245b838a378fbb6;p=freetel-svn-tracking.git got menu.sh working again by using bash shell, guess this handles arrays OK git-svn-id: https://svn.code.sf.net/p/freetel/code@172 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2/script/menu.sh b/codec2/script/menu.sh index e9ab7f02..c1a620bd 100755 --- a/codec2/script/menu.sh +++ b/codec2/script/menu.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # ./menu.sh # # David Rowe @@ -61,11 +61,11 @@ do readchar=`dd if=/dev/tty bs=1 count=1 2>/dev/null` echo $readchar stty -cbreak -# if [ $readchar == 'q' ] ; then -# readchar=0 -# fi + if [ $readchar == 'q' ] ; then + readchar=0 + fi if [ $readchar -ne 0 ] ; then - echo "play -r 8000 -s -2 ${file[$readchar]} $dsp > /dev/null" + play -r 8000 -s -2 ${file[$readchar]} $dsp 2> /dev/null fi done echo