X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Ftrac;h=0460c9ff24bd35a17eaeab018b9da7c9ef98458d;hb=87143986c078fbdd103a41b3c543bc075bf44fdf;hp=fb5052c1392c97e45aecde0022afe80aba38a4b8;hpb=cfc47e5571e61f4323b9f64f9cbb64dfbc4bf1b4;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/handlers/trac b/handlers/trac index fb5052c..0460c9f 100644 --- a/handlers/trac +++ b/handlers/trac @@ -1,4 +1,4 @@ -# -*- mode: sh; sh-basic-offset: 8; indent-tabs-mode: nil; -*- +# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*- # # this handler will backup trac environments (based on the svn handler) # @@ -13,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`