--- makeself-2.1.4/stripmakeself.pix 2005-08-20 15:32:02.000000000 +0200 +++ makeself-2.1.4/stripmakeself 2006-10-05 18:36:27.000000000 +0200 @@ -145,7 +145,11 @@ open (FILE,'<',$file) or die $!; -<FILE> =~ /#! ?\/bin\/sh\n/ or die "file is not a shell script"; +{ + my $s; + do { $s = <FILE> } until $s !~ /^$/; + $s =~ m/^#! ?\/bin\/sh$/ or die "file is not a shell script"; +} my $offset = getarchiveoffset(); if($offset < 0)