From e340d7beef9573facc53f3eeece640b2a14a15f5 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 19 Apr 2019 18:14:37 +0000 Subject: [PATCH] get_reviewer.pl: improve portability Not all package managers / users will install perl into /usr/bin, but /usr/bin/env /should/ always be present. Using /usr/bin/env means that we can't give the -w argument to Perl, so I added `use warnings' in the script. Reviewed-by: Rob Clark Reviewed-by: Eric Engestrom --- scripts/get_reviewer.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/get_reviewer.pl b/scripts/get_reviewer.pl index 62deb922800..1677495ad6d 100755 --- a/scripts/get_reviewer.pl +++ b/scripts/get_reviewer.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # (c) 2007, Joe Perches # created from checkpatch.pl # @@ -14,6 +14,7 @@ # Licensed under the terms of the GNU GPL License version 2 use strict; +use warnings; my $P = $0; my $V = '0.26'; -- 2.30.2