Skip to content

Commit

Permalink
Fix command
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt committed Jan 5, 2024
1 parent c3b0f3f commit d167ab9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ extension RunProcessCustom on ProcessRunner {
// Flutter/Dart instead. E.g. `fvm flutter test` -> `flutter test`.
if (commandLine.first == 'fvm') {
if (_isFvmInstalled == null) {
_isFvmInstalled ??= await isCommandInstalled(this, command: 'fvm');
_isFvmInstalled = await isCommandInstalled(this, command: 'fvm');
if (_isFvmInstalled == false) {
stdout.writeln(
'FVM (Flutter Version Management) is not installed, using regular Flutter/Dart instead.');
'⚠️ FVM (Flutter Version Management) is not installed, using regular Flutter/Dart instead.');
}
}
if (_isFvmInstalled == false) {
commandLine = commandLine.skip(0).toList();
commandLine = commandLine.skip(1).toList();
}
}

Expand Down

0 comments on commit d167ab9

Please sign in to comment.