Commit 0d9f6dc4 authored by Andy Yates's avatar Andy Yates
Browse files

Bug found meaning the specified target location was never used & the script would have broken

parent db48a526
......@@ -399,6 +399,10 @@ foreach my $spec (@todo) {
next;
}
if(! $target_dir && $target_location) {
$target_dir = $target_location;
}
if ( !defined($target_dir) ) {
warn(
sprintf(
......@@ -412,10 +416,6 @@ foreach my $spec (@todo) {
$source_dbh->disconnect();
next;
}
if(defined $target_location) {
$target_dir = $target_location;
}
printf( "SOURCE 'datadir' = '%s'\n", $source_dir );
printf( "TARGET 'datadir' = '%s'\n", $target_dir );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment