mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Fix local powershell handling
This commit is contained in:
parent
5ef3e1d508
commit
405cdf53e5
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue