diff options
author | lenz@mysql.com <> | 2002-10-21 14:51:57 +0200 |
---|---|---|
committer | lenz@mysql.com <> | 2002-10-21 14:51:57 +0200 |
commit | 5459505bba0bb30ca36ab427b40ad9236075f84d (patch) | |
tree | 58f2e6139e7e829e84f1fdc5ec6a38e41d5496b6 /scripts/mysqlhotcopy.sh | |
parent | ca08ed522c12d54d4dc09301ae796f1619b764f1 (diff) | |
download | mariadb-git-5459505bba0bb30ca36ab427b40ad9236075f84d.tar.gz |
- added "darwin" to the list of systems that are known to support the
-p option for cp and the -r option for scp (thank to Paul DuBois for
the patch)
- fixed a typo
Diffstat (limited to 'scripts/mysqlhotcopy.sh')
-rw-r--r-- | scripts/mysqlhotcopy.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh index d808ffdcaef..bc23c0e5d95 100644 --- a/scripts/mysqlhotcopy.sh +++ b/scripts/mysqlhotcopy.sh @@ -559,15 +559,15 @@ sub copy_files { my @cp = ($method); # add option to preserve mod time etc of copied files # not critical, but nice to have - push @cp, "-p" if $^O =~ m/^(solaris|linux|freebsd)$/; + push @cp, "-p" if $^O =~ m/^(solaris|linux|freebsd|darwin)$/; # add recursive option for scp - push @cp, "-r" if $^O =~ /m^(solaris|linux|freebsd)$/ && $method =~ /^scp\b/; + push @cp, "-r" if $^O =~ /m^(solaris|linux|freebsd|darwin)$/ && $method =~ /^scp\b/; my @non_raid = map { "'$_'" } grep { ! m:/\d{2}/[^/]+$: } @$files; # add files to copy and the destination directory -+ safe_system( @cp, @non_raid, "'$target'" ); + safe_system( @cp, @non_raid, "'$target'" ); foreach my $rd ( @$raid_dirs ) { my @raid = map { "'$_'" } grep { m:$rd/: } @$files; |