summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-09-16 13:35:28 +0200
committerSergei Golubchik <sergii@pisem.net>2014-09-16 13:35:28 +0200
commit33656e042dc7e983c9612a011fdef64a8dd40aa1 (patch)
tree51dc8cad3ff74d2509255c4e7f8ba2c7a7a18c7c /scripts
parentf18b1400d13a9ba9b4c2df96a20b9ca7e0f5ffb9 (diff)
downloadmariadb-git-33656e042dc7e983c9612a011fdef64a8dd40aa1.tar.gz
for mysql-test: fix mysqlhotcopy script to return a predictable exit code
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mysqlhotcopy.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh
index 1ef743725e5..b6ff7e1b28d 100644
--- a/scripts/mysqlhotcopy.sh
+++ b/scripts/mysqlhotcopy.sh
@@ -56,6 +56,9 @@ WARNING: THIS PROGRAM IS STILL IN BETA. Comments/patches welcome.
# Documentation continued at end of file
+# fix CORE::GLOBAL::die to return a predictable exit code
+BEGIN { *CORE::GLOBAL::die= sub { warn @_; exit 1; }; }
+
my $VERSION = "1.23";
my $opt_tmpdir = $ENV{TMPDIR} || "/tmp";