From 7326dcbf23c0c5a2c68d57809e2934b9986d9d6b Mon Sep 17 00:00:00 2001 From: "lenz@mysql.com" <> Date: Tue, 8 Jul 2003 23:29:55 +0200 Subject: [PATCH] - Fixed mysqlhotcopy to actually abort if copying the tables failed. (BUG#812) --- scripts/mysqlhotcopy.sh | 4 ++-- 1 file 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"; } }