switch-to-configuration.pl: Fix parsing of comments in fstab, hash-tokens inside strings are not comments.
This commit is contained in:
parent
e32e501435
commit
8fe8ab7097
@ -68,7 +68,7 @@ sub parseFstab {
|
||||
my ($fss, $swaps);
|
||||
foreach my $line (read_file($filename, err_mode => 'quiet')) {
|
||||
chomp $line;
|
||||
$line =~ s/#.*//;
|
||||
$line =~ s/^\s*#.*//;
|
||||
next if $line =~ /^\s*$/;
|
||||
my @xs = split / /, $line;
|
||||
if ($xs[2] eq "swap") {
|
||||
|
Loading…
Reference in New Issue
Block a user