mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
fix-shebang: Use the correct operation for comparing strings
This commit is contained in:
2
debian/bin/fix-shebang
vendored
2
debian/bin/fix-shebang
vendored
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user