whoops, had an old hardcoded directory. Guess I should dogfood more often.

This commit is contained in:
Chris Lockfort 2010-08-01 17:09:00 -07:00
parent 85d276a4e5
commit 3e05e1680b

View file

@ -24,7 +24,7 @@ for(my $i = 0; $i < @urls; ++$i){
}
unless(-e "$backupdir/$name"){ #We haven't backed this up before, let's clone it
print "CLONING REPOSITORY: $url\n";
system("cd backups && git clone $url") and die "Encountered an error while git-cloning repository $name\n";
system("cd $backupdir && git clone $url") and die "Encountered an error while git-cloning repository $name\n";
}
else{ #We've backed it up before, just fetch the most recent copy
print "REPOSITORY EXISTED, FETCHING: $name\n";