Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
deandreamatias authored Feb 29, 2024
2 parents 143a6f6 + 7261e85 commit f6df58d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/src/workflows/ensure_cache.workflow.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Future<CacheFlutterVersion> ensureCacheWorkflow(
);
}

// If shouldl install notifiy the user that is already installed
// If should install notify the user that is already installed
if (shouldInstall) {
logger.success(
'Flutter SDK: ${cyan.wrap(cacheVersion.printFriendlyName)} is already installed.',
Expand All @@ -69,13 +69,15 @@ Future<CacheFlutterVersion> ensureCacheWorkflow(
'Flutter SDK: ${cyan.wrap(validVersion.printFriendlyName)} is not installed.',
);

final shouldInstallConfirmed = logger.confirm(
'Would you like to install it now?',
defaultValue: true,
);
if (!force) {
final shouldInstallConfirmed = logger.confirm(
'Would you like to install it now?',
defaultValue: true,
);

if (!shouldInstallConfirmed) {
exit(ExitCode.success.code);
if (!shouldInstallConfirmed) {
exit(ExitCode.success.code);
}
}
}

Expand Down

0 comments on commit f6df58d

Please sign in to comment.