From: micah Date: Sun, 25 Dec 2005 03:26:02 +0000 (+0000) Subject: r193@um: micah | 2005-12-24 21:05:47 -0500 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=a1eeaa5061132ac145c9f9131ad0c4192397bd09;hp=73eacf595f28194382fd24970b27e52acb193d68;p=matthijs%2Fupstream%2Fbackupninja.git r193@um: micah | 2005-12-24 21:05:47 -0500 Added trac patch to fix subdir mkdir problem git-svn-id: http://code.autistici.org/svn/backupninja/trunk@262 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/handlers/trac b/handlers/trac index d344082..1c1b464 100644 --- a/handlers/trac +++ b/handlers/trac @@ -14,14 +14,15 @@ for repo in `find . -name VERSION` do repo=`dirname $repo` - # Just make the $tmp dir, not $tmp/$repo - ret=`mkdir -p $tmp 2>&1` + # Just make the parent directory for $tmp/$repo + parentdir=`dirname $tmp/$repo` + ret=`mkdir -p $parentdir 2>&1` code=$? if [ "$ret" ]; then debug "$ret" fi if [ $code != 0 ]; then - error "command failed mkdir -p $tmp" + error "command failed mkdir -p $parentdir" fi ret=`trac-admin $src/$repo hotcopy $tmp/$repo 2>&1`