Your system clock seems to be broken.
On Sun, Aug 14, 2005 at 02:22:28PM +0600, ???????????? ?????????? wrote:
> i've made some script for management my mpc:
> st=`mpc ls $1 | wmiimenu`
Why do you set st=$1 and then you overwrite its value?
I also don't see a reason why manipulating IFS is necessary.
> for name in `ls "/data/music/$st"` ; do
> # IFS=$' \t\n'
> if [ -d "/data/music/$name" ] ; then
This looks wrong, did you mean /data/music/$st/$name?
> # IFS=$'\n'
> #set IFS=$' \t\n'
> if [ "$isdir" != "1" ]; then
> ./mpccont.sh "$st";
> mpc clear
> mpc add "$st"
> mpc play;
I don't understand why you iterate over all files in the dir
/data/music/$st to set isdir (it will always point to the last
entry) and then deciding what todo.
song=`mpc ls $1 | wmiimenu`
if test -d "/data/music/$song"
mpc add "$song"
Dunno if that is what you want todo...
-- Anselm R. Garbe ><>< www.ebrag.de ><>< GPG key: 0D73F361Received on Mon Aug 14 2006 - 10:40:52 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:12:49 UTC