mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 05:29:30 +00:00
Fix error caused on some boxes by using diff when it's not defined.
This commit is contained in:
@@ -870,7 +870,7 @@ main() {
|
|||||||
# Execute the program if it was not included from another file.
|
# Execute the program if it was not included from another file.
|
||||||
# This makes it possible to include without executing, and thus test.
|
# This makes it possible to include without executing, and thus test.
|
||||||
if [ "${0##*/}" = "$TOOL" ] \
|
if [ "${0##*/}" = "$TOOL" ] \
|
||||||
|| [ "${0##*/}" = "bash" -a "$_" = "$0" ]; then
|
|| [ "${0##*/}" = "bash" -a "${_:-""}" = "$0" ]; then
|
||||||
|
|
||||||
# Parse command line options. We must do this first so we can
|
# Parse command line options. We must do this first so we can
|
||||||
# see if --daemonize was specified.
|
# see if --daemonize was specified.
|
||||||
|
@@ -2421,7 +2421,7 @@ main() {
|
|||||||
# Execute the program if it was not included from another file.
|
# Execute the program if it was not included from another file.
|
||||||
# This makes it possible to include without executing, and thus test.
|
# This makes it possible to include without executing, and thus test.
|
||||||
if [ "${0##*/}" = "$TOOL" ] \
|
if [ "${0##*/}" = "$TOOL" ] \
|
||||||
|| [ "${0##*/}" = "bash" -a "$_" = "$0" ]; then
|
|| [ "${0##*/}" = "bash" -a "${_:-""}" = "$0" ]; then
|
||||||
|
|
||||||
# Set up temporary dir.
|
# Set up temporary dir.
|
||||||
mk_tmpdir
|
mk_tmpdir
|
||||||
|
@@ -215,7 +215,7 @@ main() {
|
|||||||
# Execute the program if it was not included from another file. This makes it
|
# Execute the program if it was not included from another file. This makes it
|
||||||
# possible to include without executing, and thus test.
|
# possible to include without executing, and thus test.
|
||||||
if [ "${0##*/}" = "$TOOL" ] \
|
if [ "${0##*/}" = "$TOOL" ] \
|
||||||
|| [ "${0##*/}" = "bash" -a "$_" = "$0" ]; then
|
|| [ "${0##*/}" = "bash" -a "${_:-""}" = "$0" ]; then
|
||||||
mk_tmpdir
|
mk_tmpdir
|
||||||
main "$@"
|
main "$@"
|
||||||
rm_tmpdir
|
rm_tmpdir
|
||||||
|
@@ -587,7 +587,7 @@ main() {
|
|||||||
# Execute the program if it was not included from another file. This makes it
|
# Execute the program if it was not included from another file. This makes it
|
||||||
# possible to include without executing, and thus test.
|
# possible to include without executing, and thus test.
|
||||||
if [ "${0##*/}" = "$TOOL" ] \
|
if [ "${0##*/}" = "$TOOL" ] \
|
||||||
|| [ "${0##*/}" = "bash" -a "$_" = "$0" ]; then
|
|| [ "${0##*/}" = "bash" -a "${_:-""}" = "$0" ]; then
|
||||||
main "${@:-""}"
|
main "${@:-""}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -1310,7 +1310,7 @@ main() {
|
|||||||
# Execute the program if it was not included from another file.
|
# Execute the program if it was not included from another file.
|
||||||
# This makes it possible to include without executing, and thus test.
|
# This makes it possible to include without executing, and thus test.
|
||||||
if [ "${0##*/}" = "$TOOL" ] \
|
if [ "${0##*/}" = "$TOOL" ] \
|
||||||
|| [ "${0##*/}" = "bash" -a "$_" = "$0" ]; then
|
|| [ "${0##*/}" = "bash" -a "${_:-""}" = "$0" ]; then
|
||||||
|
|
||||||
# Parse command line options. We must do this first so we can
|
# Parse command line options. We must do this first so we can
|
||||||
# see if --daemonize was specified.
|
# see if --daemonize was specified.
|
||||||
|
@@ -2289,7 +2289,7 @@ sigtrap() { local PTFUNCNAME=sigtrap;
|
|||||||
# Execute the program if it was not included from another file. This makes it
|
# Execute the program if it was not included from another file. This makes it
|
||||||
# possible to include without executing, and thus test.
|
# possible to include without executing, and thus test.
|
||||||
if [ "${0##*/}" = "$TOOL" ] \
|
if [ "${0##*/}" = "$TOOL" ] \
|
||||||
|| [ "${0##*/}" = "bash" -a "$_" = "$0" ]; then
|
|| [ "${0##*/}" = "bash" -a "${_:-""}" = "$0" ]; then
|
||||||
|
|
||||||
# Set up temporary dir.
|
# Set up temporary dir.
|
||||||
mk_tmpdir
|
mk_tmpdir
|
||||||
|
Reference in New Issue
Block a user