fix-shebang: Use the correct operation for comparing strings

This commit is contained in:
Ben Hutchings 2018-08-25 23:15:18 +01:00
parent 35ab00b41b
commit 2ade725761
1 changed files with 1 additions and 1 deletions

View File

@ -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";