aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2005-12-25 03:26:02 +0000
committerMicah Anderson <micah@riseup.net>2005-12-25 03:26:02 +0000
commitc557a4037287ce827e4e2e200c925d893ba84a2e (patch)
tree6ef36644867cdf7b22c29caeff8b5bdf5cff450a
parent92d839bcd9a4e5b66c41e57dcac00345399ca90d (diff)
downloadbackupninja-c557a4037287ce827e4e2e200c925d893ba84a2e.tar.gz
backupninja-c557a4037287ce827e4e2e200c925d893ba84a2e.tar.bz2
r193@um: micah | 2005-12-24 21:05:47 -0500
Added trac patch to fix subdir mkdir problem
-rw-r--r--handlers/trac7
1 files changed, 4 insertions, 3 deletions
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`