openbsd-ports/databases/percona-toolkit/patches/patch-bin_pt-summary
2012-10-09 15:39:13 +00:00

15 lines
552 B
Plaintext

$OpenBSD: patch-bin_pt-summary,v 1.5 2012/10/09 15:39:13 giovanni Exp $
--- bin/pt-summary.orig Tue Sep 25 17:35:54 2012
+++ bin/pt-summary Tue Oct 9 16:54:29 2012
@@ -2279,8 +2279,9 @@ sigtrap() { local PTFUNCNAME=sigtrap;
# Execute the program if it was not included from another file. This makes it
# possible to include without executing, and thus test.
+set +u
if [ "${0##*/}" = "$TOOL" ] \
- || [ "${0##*/}" = "bash" -a "$_" = "$0" ]; then
+ || [ "${0##*/}" = "sh" -a "$_" = "$0" ]; then
# Set up temporary dir.
mk_tmpdir