summaryrefslogtreecommitdiff
path: root/build/preseed.pl
diff options
context:
space:
mode:
Diffstat (limited to 'build/preseed.pl')
-rwxr-xr-xbuild/preseed.pl5
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;