mirror of
https://github.com/xpipe-io/xpipe.git
synced 2025-04-22 12:13:25 +00:00
Script adjustments for bsd
This commit is contained in:
parent
e80cf7e4b0
commit
63bef7161a
1 changed files with 3 additions and 5 deletions
|
@ -131,11 +131,9 @@ public class TerminalLauncher {
|
|||
entry != null ? color : null, adjustedTitle, cleanTitle, ps, ShellDialects.POWERSHELL);
|
||||
return config;
|
||||
} else {
|
||||
var content =
|
||||
"""
|
||||
script --quiet --command "%s" "%s"
|
||||
"""
|
||||
.formatted(preparationScript, logFile);
|
||||
var content = sc.getOsType() == OsType.MACOS || sc.getOsType() == OsType.BSD ?
|
||||
"script -q \"%s\" \"%s\"".formatted(logFile, preparationScript) :
|
||||
"script --quiet --command \"%s\" \"%s\"".formatted(preparationScript, logFile);
|
||||
var ps = ScriptHelper.createExecScript(sc.getShellDialect(), sc, content);
|
||||
var config = new ExternalTerminalType.LaunchConfiguration(
|
||||
entry != null ? color : null, adjustedTitle, cleanTitle, ps, sc.getShellDialect());
|
||||
|
|
Loading…
Add table
Reference in a new issue