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

This commit is contained in:
Devon Carew
2016-10-16 10:05:13 -07:00
committed by GitHub
parent 06babb2898
commit e9b041f21e

View File

@@ -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