diff options
author | tv <root@telnet.shack> | 2011-01-02 21:41:57 +0100 |
---|---|---|
committer | tv <root@telnet.shack> | 2011-01-02 21:41:57 +0100 |
commit | 3e4bc770f2db263497ac60197932294d0acc0d8a (patch) | |
tree | 1326c8b4523073035b241f984379d69c02653bc9 /modules | |
parent | 62fe6b8b456bd7c18d0b24e9d4bf2ed62c5d7d0b (diff) |
stream: fixed typo in verbose help
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/stream | 5 |
1 files changed, 3 insertions, 2 deletions
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" |