mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (minor optimization)
This commit is contained in:
@@ -228,7 +228,7 @@ public class ExecUtil {
|
||||
@NotNull
|
||||
public static List<String> getTerminalCommand(@Nullable String title, @NotNull String command) {
|
||||
if (SystemInfo.isWindows) {
|
||||
title = title != null ? title.replace("\"", "'") : "";
|
||||
title = title != null ? title.replace('"', '\'') : "";
|
||||
return Arrays.asList(getWindowsShellName(), "/c", "start", GeneralCommandLine.inescapableQuote(title), command);
|
||||
}
|
||||
else if (SystemInfo.isMac) {
|
||||
|
||||
Reference in New Issue
Block a user