diff --git a/perl-DateTime-Format-Pg.spec b/perl-DateTime-Format-Pg.spec index 7874dfb..b560a6f 100644 --- a/perl-DateTime-Format-Pg.spec +++ b/perl-DateTime-Format-Pg.spec @@ -48,7 +48,7 @@ with "%{_libexecdir}/%{name}/test". # Help file to recognise the Perl scripts for F in t/*.t; do - perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl}{$Config{startperl}}' "$F" chmod +x "$F" done