X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Ftrac;fp=handlers%2Ftrac;h=1c1b46463df33d5801d5c9202fd251ec73050cf8;hb=c557a4037287ce827e4e2e200c925d893ba84a2e;hp=d344082f63d9450041d4190fbd13fa500a77fa93;hpb=92d839bcd9a4e5b66c41e57dcac00345399ca90d;p=matthijs%2Fupstream%2Fbackupninja.git 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`