|
|
@ -6,7 +6,7 @@ lockfile="$logdir/lock.log"
|
|
|
|
dir=`dirname $0`
|
|
|
|
dir=`dirname $0`
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ! -d $logdir ]]; then
|
|
|
|
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
|
|
|
|
mkdir -p $logdir
|
|
|
|
chmod 777 $logdir
|
|
|
|
chmod 777 $logdir
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -18,6 +18,9 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
touch $lockfile
|
|
|
|
touch $lockfile
|
|
|
|
hpodder fetch >> $logfile
|
|
|
|
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
|
|
|
|
rm $lockfile
|
|
|
|
|
|
|
|
|
|
|
|