Cleanup (minor optimization)

This commit is contained in:
Roman Shevchenko
2017-05-25 12:42:03 +03:00
parent a09c692193
commit 671fcfe53f
@@ -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) {