fix-shebang: Use the correct operation for comparing strings
This commit is contained in:
parent
35ab00b41b
commit
2ade725761
|
@ -4,7 +4,7 @@
|
|||
# Other uses of /usr/bin/env should probably be converted as well, but
|
||||
# policy doesn't specify what to do.
|
||||
if ($. == 1 && m|^\#!\s*/usr/bin/env\s+(.+)|) {
|
||||
if ($1 == "perl") {
|
||||
if ($1 eq "perl") {
|
||||
$_ = "#!/usr/bin/perl\n";
|
||||
} else {
|
||||
print STDERR "W: Found #!/usr/bin/env $1 and don't know what to substitute\n";
|
||||
|
|
Loading…
Reference in New Issue