1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash logdir=`pwd` rm fail.log for i in plugins/* do if [ -d $i ] then mydir=`pwd` cd $i # versionpkg -mf||exit 1 echo "starting $i" mp -fsr || echo "$i failed" >> $logdir/fail.log cd $mydir fi done