From 3e4bc770f2db263497ac60197932294d0acc0d8a Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 2 Jan 2011 21:41:57 +0100 Subject: stream: fixed typo in verbose help --- modules/stream | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/stream') diff --git a/modules/stream b/modules/stream index fa5a2d6e..1e6fd0c5 100755 --- a/modules/stream +++ b/modules/stream @@ -1,16 +1,17 @@ #! /bin/sh inputdir=$HOME/noise/streams +basename="`basename "$0"`" case "$1" in (--help) if echo "$0 $*" | grep -q '[[:space:]]--verbose\>'; then - echo -e "\x1B[35mtype \x1B[32m/espeak off \x1B[35mto turn stream off\x1B[m" + echo -e "\x1B[35mtype \x1B[32m/$basename off \x1B[35mto turn stream off\x1B[m" for i in `ls $inputdir` ; do filename="$inputdir/$i" shortcut=`xmlstarlet sel -t -v /station/@shortcut "$inputdir/$i"` title=`xmlstarlet sel -t -v /station/@title "$inputdir/$i"` topic=`xmlstarlet sel -t -v /station/@topic "$inputdir/$i"` stream=`xmlstarlet sel -t -v /station/@stream "$inputdir/$i"` - echo -e "\x1B[35mtype \x1B[32m/espeak $shortcut \x1B[35mfor $topic\x1B[m" + echo -e "\x1B[35mtype \x1B[32m/$basename $shortcut \x1B[35mfor $topic\x1B[m" done else echo "play an audio stream" -- cgit v1.2.3