summaryrefslogtreecommitdiff
path: root/scripts/mysqlhotcopy.sh
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2003-07-08 23:29:55 +0200
committerunknown <lenz@mysql.com>2003-07-08 23:29:55 +0200
commitb5b615942cf1c4cd4427aed96510df0ecf19e7d7 (patch)
tree7aa1f6262d4f84b6fcb4c070401aeb8377dee1d7 /scripts/mysqlhotcopy.sh
parentf0f7eccc2375d07b16a61ddc79fe5d1fc3ee4fc2 (diff)
downloadmariadb-git-b5b615942cf1c4cd4427aed96510df0ecf19e7d7.tar.gz
- Fixed mysqlhotcopy to actually abort if copying the tables failed.
(BUG#812) scripts/mysqlhotcopy.sh: - Actually die if copying the tables fails instead of going on as if nothing was wrong (BUG#812)
Diffstat (limited to 'scripts/mysqlhotcopy.sh')
-rw-r--r--scripts/mysqlhotcopy.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh
index fc89a967e16..98a5c5b9f85 100644
--- a/scripts/mysqlhotcopy.sh
+++ b/scripts/mysqlhotcopy.sh
@@ -660,9 +660,9 @@ sub safe_system
print "Executing '@cmd'\n" if $opt{debug};
my $cp_status = system "@cmd > /dev/null";
if ($cp_status != 0) {
- warn "Burp ('scuse me). Trying backtick execution...\n" if $opt{debug}; #'
+ warn "Executing command failed ($cp_status). Trying backtick execution...\n";
## try something else
- `@cmd` && die "Error: @cmd failed ($cp_status) while copying files.\n";
+ `@cmd` || die "Error: @cmd failed ($?) while copying files.\n";
}
}