rewrite scripts
try to provide better syntax and avoid using bash
This commit is contained in:
4
debian/bin/fix-shebang
vendored
4
debian/bin/fix-shebang
vendored
@@ -5,8 +5,8 @@
|
||||
# policy doesn't specify what to do.
|
||||
if ($. == 1 && m|^\#!\s*/usr/bin/env\s+(.+)|) {
|
||||
if ($1 eq "perl") {
|
||||
$_ = "#!/usr/bin/perl\n";
|
||||
$_ = "#!/usr/bin/perl\n";
|
||||
} else {
|
||||
print STDERR "W: Found #!/usr/bin/env $1 and don't know what to substitute\n";
|
||||
print STDERR "W: Found #!/usr/bin/env $1 and don't know what to substitute\n";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user