contrib/diff-highlight: stop hard-coding perl location
- From
Peter Dave Hello <hsu@peterdavehello.org>
- Date
- Feb 22, 2016, 05:54 UTC
- Message-ID
- <CA+boQ6YWWkudgwC7zn-3UPWqfkw+uJZgwcBWcGvJDcCUakjzHA@mail.gmail.com>
From: Peter Dave Hello <hsu@peterdavehello.org>
Use `#!/usr/bin/env perl` instead of `#!/usr/bin/perl`, the util "env" can help located the "perl", so that it can work on FreeBSD and other platforms.
Signed-off-by: Peter Dave Hello <hsu@peterdavehello.org> --- contrib/diff-highlight/diff-highlight | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/diff-highlight/diff-highlight b/contrib/diff-highlight/diff-highlight index ffefc31..b57b0fd 100755 --- a/contrib/diff-highlight/diff-highlight +++ b/contrib/diff-highlight/diff-highlight @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use 5.008; use warnings FATAL => 'all'; --