Skip to content

Commit 2858c0e

Browse files
committed
runCommand isn’t necessarily about git
1 parent 49facf0 commit 2858c0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/processor/java/org/truffleruby/processor/BuildInformationProcessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ private String findKernelMajorVersion() throws IOException, InterruptedException
105105
}
106106

107107
private String runCommand(String command) throws IOException, InterruptedException {
108-
final Process git = new ProcessBuilder(command.split("\\s+")).directory(trufflerubyHome).start();
108+
final Process process = new ProcessBuilder(command.split("\\s+")).directory(trufflerubyHome).start();
109109
final String firstLine;
110110
try (BufferedReader reader = new BufferedReader(
111-
new InputStreamReader(git.getInputStream(), StandardCharsets.UTF_8))) {
111+
new InputStreamReader(process.getInputStream(), StandardCharsets.UTF_8))) {
112112
firstLine = reader.readLine();
113113
}
114114

115-
final int exitCode = git.waitFor();
115+
final int exitCode = process.waitFor();
116116
if (exitCode != 0) {
117117
throw new Error("Command " + command + " failed with exit code " + exitCode);
118118
}

0 commit comments

Comments
 (0)