diff options
Diffstat (limited to 'etc/re!')
-rwxr-xr-x | etc/re! | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -18,7 +18,11 @@ for my $file (@ARGV) { # parse shebang my $shebang = <$o>; - $shebang =~ /^#!/ or die "no shebang: $file\n"; + if (not $shebang =~ /^#!/) { + warn "no shebang: $file\n"; + close $o; + next; + } $shebang =~ /^#!\s*(\S+)\s*(.*)/; my ($old, $args) = ($1, $2); |