Fix local powershell handling

This commit is contained in:
crschnick 2024-02-28 15:13:27 +00:00
parent 5ef3e1d508
commit 405cdf53e5

View file

@ -19,9 +19,13 @@ public class LocalShell {
}
public static ShellControl getLocalPowershell() throws Exception {
if (ShellDialects.isPowershell(getShell())) {
return local.start();
}
if (localPowershell == null) {
localPowershell = ProcessControlProvider.get()
.createLocalProcessControl(true)
.createLocalProcessControl(false)
.subShell(ShellDialects.POWERSHELL)
.start();
}