diff options
Diffstat (limited to 'build/preseed.pl')
-rwxr-xr-x | build/preseed.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build/preseed.pl b/build/preseed.pl index e1c44628b..805a57667 100755 --- a/build/preseed.pl +++ b/build/preseed.pl @@ -71,9 +71,8 @@ sub replace_entities { $text =~ s/&releasename;/$release/; # Any unrecognized entities? - if ( $text =~ /&[^ ]+;/ ) { - my ($ent) = $text =~ m/.*(&[^ ]+;).*/; - die "Error: unrecognized entity '$ent'\n" + if ( $text =~ /(&[^ ]+;)/ ) { + die "Error: unrecognized entity '$1'\n" } return $text; |