diff options
author | Daniel Black <daniel@linux.ibm.com> | 2020-03-31 07:57:53 +1100 |
---|---|---|
committer | Anel <an3l@users.noreply.github.com> | 2020-06-23 03:24:46 +0200 |
commit | 37c88445e30d52c965bcb19b19fa710c3eb4fad9 (patch) | |
tree | b269fc6ab832c03a1bc9bdb8e1e0af9b6e293023 /dbug | |
parent | b1b9803cb800334962970a8783c782253021e964 (diff) | |
download | mariadb-git-37c88445e30d52c965bcb19b19fa710c3eb4fad9.tar.gz |
mtr: use env for perl
On FreeBSD, perl isn't in /usr/bin, its in /usr/local/bin or
elsewhere in the path.
Like storage/{maria/unittest/,}ma_test_* , we use /usr/bin/env to
find perl and run it.
Diffstat (limited to 'dbug')
-rwxr-xr-x | dbug/dbug_add_tags.pl | 2 | ||||
-rwxr-xr-x | dbug/remove_function_from_trace.pl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dbug/dbug_add_tags.pl b/dbug/dbug_add_tags.pl index 7be8fb9b18d..f117bdcd65b 100755 --- a/dbug/dbug_add_tags.pl +++ b/dbug/dbug_add_tags.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (c) 2002 MySQL AB, 2009 Sun Microsystems, Inc. # Use is subject to license terms. diff --git a/dbug/remove_function_from_trace.pl b/dbug/remove_function_from_trace.pl index 380df168caf..67d7fa54b6a 100755 --- a/dbug/remove_function_from_trace.pl +++ b/dbug/remove_function_from_trace.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl die <<EEE unless @ARGV; Usage: $0 func1 [func2 [ ...] ] |