From 072ceac893237cf57685c35ec245b838a378fbb6 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Mon, 16 Aug 2010 08:38:43 +0000 Subject: [PATCH] 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 --- codec2/script/menu.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.25.1