mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 17:47:59 -06:00
Fixing the powershell to collect netsetup logs - the previous command worked when there were multiple files in the target path, but when there was just a single file it did not work correctly. this is verified to work with both 1 or more files in the netsetup path.
This commit is contained in:
parent
496c2d1b6c
commit
5cd49a6e32
@ -259,7 +259,7 @@ catch {}
|
||||
$netSetupPath = "$env:WINDIR/logs/netsetup"
|
||||
if (Test-Path $netSetupPath)
|
||||
{
|
||||
Copy-Item $netSetupPath $folder
|
||||
Copy-Item $netSetupPath/* $folder
|
||||
}
|
||||
|
||||
$setupApiPath = "$env:WINDIR/inf/setupapi.dev.log"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user