From 007b9e3d68ced086a6c23ce78b6583eabec229a0 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 24 Jun 2003 10:24:41 +0000 Subject: (read_grub) increase readibility --- perl-install/bootloader.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'perl-install/bootloader.pm') diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 4f6fe3284..6f10bf77c 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -88,8 +88,7 @@ sub read_grub { foreach (cat_("$::prefix$file")) { next if /^\s*#/ || /^\s*$/; chomp; - # ($_, $v) = /^\s*([^=\s]+)\s*(?:=\s*(.*?))?\s*$/ or log::l("unknown line in $file: $_"), next; - if (! /^\s*([^\s]*)\s*(.*?)\s*$/) { + if (! /^\s*(\S*)\s*(.*?)\s*$/) { print STDERR "unknown line in $file: \"", chomp_($_), "\"\n"; next; } -- cgit v1.2.1