Skip to content

Commit

Permalink
fix RunCommandLineService.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
arksap2002 committed Dec 12, 2023
1 parent 0a4591f commit 3e00bac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.jetbrains.research.testspark.services

import com.intellij.openapi.components.Service
import com.intellij.openapi.project.Project
import org.jetbrains.research.testspark.Util
import org.jetbrains.research.testspark.DataFilesUtil
import java.io.BufferedReader
import java.io.InputStreamReader

Expand All @@ -21,7 +21,7 @@ class RunCommandLineService(private val project: Project) {
/**
* Since Windows does not provide bash, use cmd or similar default command line interpreter
*/
val process = if (Util.isWindows()) {
val process = if (DataFilesUtil.isWindows()) {
ProcessBuilder()
.command("cmd", "/c", cmd.joinToString(" "))
.redirectErrorStream(true)
Expand Down

0 comments on commit 3e00bac

Please sign in to comment.