Better handling of configuration with several Windows installations.
This commit is contained in:
parent
0889bfa503
commit
322d087335
|
@ -146,6 +146,7 @@ sub FindWindowsDir {
|
||||||
my(@FATD)=@::FatDrives;
|
my(@FATD)=@::FatDrives;
|
||||||
my(@wininis) = ();
|
my(@wininis) = ();
|
||||||
my ($winini);
|
my ($winini);
|
||||||
|
my ($ThisDrive);
|
||||||
|
|
||||||
if (!$::opt_windir && !$::opt_fast && !$::opt_thorough) {
|
if (!$::opt_windir && !$::opt_fast && !$::opt_thorough) {
|
||||||
$::opt_thorough++;
|
$::opt_thorough++;
|
||||||
|
@ -161,8 +162,7 @@ sub FindWindowsDir {
|
||||||
}
|
}
|
||||||
elsif ($::opt_thorough) {
|
elsif ($::opt_thorough) {
|
||||||
if ($::opt_debug) { print STDERR "DEBUG: Num FATD = ", $#FATD+1, "\n"; }
|
if ($::opt_debug) { print STDERR "DEBUG: Num FATD = ", $#FATD+1, "\n"; }
|
||||||
foreach(@FATD) {
|
foreach $ThisDrive (@FATD) {
|
||||||
my $ThisDrive = shift(@FATD);
|
|
||||||
my $MntPoint = $ThisDrive->[1];
|
my $MntPoint = $ThisDrive->[1];
|
||||||
push(@wininis, `find $MntPoint -iname win.ini -print`);
|
push(@wininis, `find $MntPoint -iname win.ini -print`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue