@ -6,7 +6,7 @@ lockfile="$logdir/lock.log"
dir=`dirname $0`
if [[ ! -d $logdir ]]; then
echo "Log directory doesn't exist, create it '$lockfile'"
echo "Log directory doesn't exist, create it '$logdir'"
mkdir -p $logdir
chmod 777 $logdir
fi
@ -18,6 +18,9 @@ fi
touch $lockfile
hpodder fetch >> $logfile
$dir/prefix-date ~/podcasts/ >> $logfile
cd ~/podcasts
for dir in $(find . -maxdepth 1 -mindepth 1 -type d); do
prefix-date $dir
done
cd -
rm $lockfile