mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-20 14:39:33 -04:00
Check for supported powershell for logging
This commit is contained in:
@@ -75,6 +75,10 @@ public class TerminalPaneConfiguration {
|
||||
var logFile = sc.getLocalSystemAccess().translateFromLocalSystemPath(FilePath.of(log));
|
||||
|
||||
if (sc.getOsType() == OsType.WINDOWS) {
|
||||
if (LocalShell.getLocalPowershell().isEmpty()) {
|
||||
throw ErrorEventFactory.expected(new IllegalStateException("PowerShell is required for terminal logging but it failed to start"));
|
||||
}
|
||||
|
||||
var launcherScript = ScriptHelper.createExecScript(
|
||||
ShellDialects.POWERSHELL,
|
||||
sc,
|
||||
|
||||
Reference in New Issue
Block a user