diff options
author | Arnstein Ressem <aressem@yahoo-inc.com> | 2016-06-17 08:44:44 +0200 |
---|---|---|
committer | Arnstein Ressem <aressem@yahoo-inc.com> | 2016-06-17 08:44:44 +0200 |
commit | 70126b277b7a02b6c3dca631bab9cf8a2df972a2 (patch) | |
tree | 7c2f3717325d5bc4ed04c033f1aafbcbb4359ace /jdisc_core | |
parent | 1934e961b908c85415650117a8b9024afaf6dfa6 (diff) |
Use /usr/bin/env perl instead of /usr/local/bin/perl
Diffstat (limited to 'jdisc_core')
-rwxr-xr-x | jdisc_core/src/main/perl/jdisc_logfmt | 2 | ||||
-rwxr-xr-x | jdisc_core/src/test/perl/jdisc_logfmt_test.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/jdisc_core/src/main/perl/jdisc_logfmt b/jdisc_core/src/main/perl/jdisc_logfmt index 1a05e229832..11a21cbe01a 100755 --- a/jdisc_core/src/main/perl/jdisc_logfmt +++ b/jdisc_core/src/main/perl/jdisc_logfmt @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/env perl # Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. # BEGIN perl environment bootstrap section diff --git a/jdisc_core/src/test/perl/jdisc_logfmt_test.sh b/jdisc_core/src/test/perl/jdisc_logfmt_test.sh index bb7e92ed8cf..0166d33d8ab 100755 --- a/jdisc_core/src/test/perl/jdisc_logfmt_test.sh +++ b/jdisc_core/src/test/perl/jdisc_logfmt_test.sh @@ -4,10 +4,10 @@ MYPATH=`dirname ${0}` DIFF=/usr/bin/diff LOGFMT=${1} -if [ -e "/usr/local/bin/perl" ]; then +if which perl &> /dev/null; then echo "Running jdisc_logfmt test suite." else - echo "Ignoring jdisc_logfmt test suite as there is no /usr/local/bin/perl" + echo "Ignoring jdisc_logfmt test suite as there is no perl executable." exit 0 fi |