mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-06-30 20:10:57 +12:00
Fix local powershell handling
This commit is contained in:
parent
5ef3e1d508
commit
405cdf53e5
|
@ -19,9 +19,13 @@ public class LocalShell {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ShellControl getLocalPowershell() throws Exception {
|
public static ShellControl getLocalPowershell() throws Exception {
|
||||||
|
if (ShellDialects.isPowershell(getShell())) {
|
||||||
|
return local.start();
|
||||||
|
}
|
||||||
|
|
||||||
if (localPowershell == null) {
|
if (localPowershell == null) {
|
||||||
localPowershell = ProcessControlProvider.get()
|
localPowershell = ProcessControlProvider.get()
|
||||||
.createLocalProcessControl(true)
|
.createLocalProcessControl(false)
|
||||||
.subShell(ShellDialects.POWERSHELL)
|
.subShell(ShellDialects.POWERSHELL)
|
||||||
.start();
|
.start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue