[wmii] help...

From: Смоляр Денис <rasta_AT_ufa.iic.ru>
Date: Mon, 14 Aug 2006 08:20:47 -0000

i've made some script for management my mpc:

#!/bin/sh
st=$1
isdir="0";
IFS=$'\n'
st=`mpc ls $1 | wmiimenu`
for name in `ls "/data/music/$st"` ; do
# IFS=$' \t\n'
    if [ -d "/data/music/$name" ] ; then
        isdir="1"
    fi
# IFS=$'\n'
done
#set IFS=$' \t\n'
if [ "$isdir" != "1" ]; then
    ./mpccont.sh "$st";
else
    mpc clear
    mpc add "$st"
    mpc play;
fi

but... it's don't work. can you explain me why?
thanks :)
Received on Mon Aug 14 2006 - 10:20:46 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:12:49 UTC