diff options
author | clefru <[email protected]> | 2017-01-14 00:57:34 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-01-13 15:57:34 -0800 |
commit | 2dbf1bf8296f66f24d5e404505c991bfbeec7808 (patch) | |
tree | 063c711740b58fd85f4932f79cf9d89c0c5b1ce0 | |
parent | 08f0510d87186575db00269fff17a3409de5ceb6 (diff) |
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 <[email protected]>
Signed-off-by: Clemens Fruhwirth <[email protected]>
Closes #5552
-rwxr-xr-x | scripts/cstyle.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/cstyle.pl b/scripts/cstyle.pl index 06bce77bd..015a6fb09 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; |