Commit 3f884661 authored by Victor Choueiri's avatar Victor Choueiri Committed by Todd Volkert

Skip upgrade check on upgrade (#14797)

parent 586d7c2f
......@@ -248,7 +248,9 @@ class FlutterCommandRunner extends CommandRunner<Null> {
_checkFlutterCopy();
await FlutterVersion.instance.ensureVersionFile();
if (globalResults.command?.name != 'upgrade') {
await FlutterVersion.instance.checkFlutterVersionFreshness();
}
if (globalResults.wasParsed('packages'))
PackageMap.globalPackagesPath = fs.path.normalize(fs.path.absolute(globalResults['packages']));
......
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