diff options
Diffstat (limited to 'bin/pkglist2preseed')
-rwxr-xr-x | bin/pkglist2preseed | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkglist2preseed b/bin/pkglist2preseed index b0d7902..0ff94c5 100755 --- a/bin/pkglist2preseed +++ b/bin/pkglist2preseed @@ -32,9 +32,9 @@ foreach (@tweakfiles) { grep { chomp } @tweaklines; grep { s/^[#]{1} (.*)/# * $1/ } @tweaklines; grep { s/^[#]{2} (.*)/# $1/ } @tweaklines; +grep { /^[^#]/ and s/(?<!;)$/ / } @tweaklines; $tweakdesc = join "\n", grep { /^[#] / } @tweaklines; -$tweaklist = join ";", grep { s/^(?!#)\s*(.+)/$1/ } @tweaklines; -$tweaklist .= ';'; +$tweaklist = join "\\\n", grep { /^[^#]/ } @tweaklines; my $pkglist = join( ' ', @pkg ); |