From 2dbf1bf8296f66f24d5e404505c991bfbeec7808 Mon Sep 17 00:00:00 2001 From: clefru Date: Sat, 14 Jan 2017 00:57:34 +0100 Subject: [PATCH] Don't hardcode perl path but use env instead Also replace the deprecated "-w" argument with "use warnings;", as otherwise env would invoke a command called "perl -w". Reviewed-by: Brian Behlendorf Signed-off-by: Clemens Fruhwirth Closes #5552 --- scripts/cstyle.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cstyle.pl b/scripts/cstyle.pl index 06bce77bd5..015a6fb091 100755 --- a/scripts/cstyle.pl +++ b/scripts/cstyle.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # # CDDL HEADER START # @@ -51,6 +51,7 @@ # require 5.0; +use warnings; use IO::File; use Getopt::Std; use strict;