From c85b6df990a6024fb0a653ab4901c99131b4b4bb Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Sat, 28 Dec 2013 11:34:32 -0800 Subject: [PATCH] Fix broken prefix-date step in running hpodder --- bin/run-hpodder | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/run-hpodder b/bin/run-hpodder index 3cf70c4..d873a26 100755 --- a/bin/run-hpodder +++ b/bin/run-hpodder @@ -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 -