Skip to content

Commit

Permalink
fix: read config process output before waiting exit code (#2528)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Zamanov committed Oct 14, 2024
1 parent aa981e8 commit f880a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli-platform-android/native_modules.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ class ReactNativeModules {
.directory(directory)
.redirectErrorStream(true)
.start()
int exitCode = process.waitFor()
def output = process.inputStream.text.trim()
int exitCode = process.waitFor()
if (exitCode != 0) {
throw new Exception("Command '${command}' failed with exit code ${exitCode}.")
}
Expand Down

0 comments on commit f880a8c

Please sign in to comment.