Commit e9b041f2 authored by Devon Carew's avatar Devon Carew Committed by GitHub

don't run the summary code if the upgrade fails (#6350)

parent 06babb28
......@@ -47,11 +47,11 @@ class UpgradeCommand extends FlutterCommand {
mapFunction: (String line) => matchesGitLine(line) ? null : line
);
await buildUnlinkedForPackages(Cache.flutterRoot);
if (code != 0)
return code;
await buildUnlinkedForPackages(Cache.flutterRoot);
// Check for and download any engine and pkg/ updates.
// We run the 'flutter' shell script re-entrantly here
// so that it will download the updated Dart and so forth
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment