X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Ftrac;h=0460c9ff24bd35a17eaeab018b9da7c9ef98458d;hb=be75e4e6c536882c14db9a41c61585e7a9c045f6;hp=1c1b46463df33d5801d5c9202fd251ec73050cf8;hpb=c557a4037287ce827e4e2e200c925d893ba84a2e;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/handlers/trac b/handlers/trac index 1c1b464..0460c9f 100644 --- a/handlers/trac +++ b/handlers/trac @@ -1,3 +1,4 @@ +# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*- # # this handler will backup trac environments (based on the svn handler) # @@ -12,7 +13,12 @@ error=0 cd $src for repo in `find . -name VERSION` do + repo=`dirname $repo` + if [ "$repo" == "." ] + then + repo="" + fi # Just make the parent directory for $tmp/$repo parentdir=`dirname $tmp/$repo`