mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-23 08:00:56 -04:00
Fix local powershell handling
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user