summaryrefslogtreecommitdiff
path: root/build/preseed.pl
diff options
context:
space:
mode:
authorFrans Pop <elendil@planet.nl>2009-04-11 21:49:11 +0000
committerFrans Pop <elendil@planet.nl>2009-04-11 21:49:11 +0000
commitcd0e47c12f01575f3998cb895134847d10922cf9 (patch)
tree0a06a5fd7230079d543f0eb2207308be456530a5 /build/preseed.pl
parentde0bf8a71f5451cdc63e80a0fbf2ae88fc9f6acf (diff)
downloadinstallation-guide-cd0e47c12f01575f3998cb895134847d10922cf9.zip
Code simplification
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;