Index: utils/compiler/build_helper.dart |
diff --git a/utils/compiler/build_helper.dart b/utils/compiler/build_helper.dart |
index 3a01a65e4ede8b31ca5f9c9b315569b2241639be..78dd6c8e39d058dcf3f99fe154e67bfa25422e9c 100644 |
--- a/utils/compiler/build_helper.dart |
+++ b/utils/compiler/build_helper.dart |
@@ -51,14 +51,14 @@ writeScript(Uri uri, List<String> scripts) { |
} |
if (Platform.operatingSystem != 'windows') { |
- onExit(int exitCode, String stdout, String stderr) { |
- if (exitCode != 0) { |
- print(stdout); |
- print(stderr); |
- exit(exitCode); |
+ onExit(ProcessResult result) { |
+ if (result.exitCode != 0) { |
+ print(result.stdout); |
+ print(result.stderr); |
+ exit(result.exitCode); |
} |
} |
- new Process.run('/bin/chmod', ['+x', uri.path], null, onExit); |
+ Process.run('/bin/chmod', ['+x', uri.path]).then(onExit); |
} |
} |