diff options
author | Frans Pop <elendil@planet.nl> | 2009-04-11 21:49:11 +0000 |
---|---|---|
committer | Frans Pop <elendil@planet.nl> | 2009-04-11 21:49:11 +0000 |
commit | cd0e47c12f01575f3998cb895134847d10922cf9 (patch) | |
tree | 0a06a5fd7230079d543f0eb2207308be456530a5 | |
parent | de0bf8a71f5451cdc63e80a0fbf2ae88fc9f6acf (diff) | |
download | installation-guide-cd0e47c12f01575f3998cb895134847d10922cf9.zip |
Code simplification
-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; |