]>
Commit | Line | Data |
---|---|---|
85beda0e | 1 | --- mysql-5.0.41/scripts/mysqlhotcopy.sh~ 2007-06-21 14:37:22.000000000 +0300 |
2 | +++ mysql-5.0.41/scripts/mysqlhotcopy.sh 2007-06-21 14:37:24.924257114 +0300 | |
3 | @@ -605,7 +605,12 @@ | |
4 | # add recursive option for scp | |
5 | $cp.= " -r" if $^O =~ /m^(solaris|linux|freebsd|darwin)$/ && $method =~ /^scp\b/; | |
6 | ||
7 | - my @non_raid = map { "'$_'" } grep { ! m:/$raid_dir_regex/[^/]+$: } @$files; | |
8 | + my @non_raid; | |
9 | + if (@$raid_dirs) { | |
10 | + @non_raid = map { "'$_'" } grep { ! m:/$raid_dir_regex/[^/]+$: } @$files; | |
11 | + } else { | |
12 | + @non_raid = @$files; | |
13 | + } | |
14 | ||
15 | # add files to copy and the destination directory | |
16 | safe_system( $cp, @non_raid, "'$target'" ) if (@non_raid); |