6 lines
290 B
PowerShell
6 lines
290 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$linuxDirectory = (& wsl.exe --distribution Ubuntu-24.04 --user root --exec wslpath -a $PSScriptRoot).Trim()
|
|
& wsl.exe --distribution Ubuntu-24.04 --user root --exec bash "$linuxDirectory/reset-lab.sh"
|
|
if ($LASTEXITCODE -ne 0) { throw 'Lab reset failed.' }
|
|
|