Skip to content

Commit

Permalink
allow run next command even previous fail
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed May 26, 2022
1 parent 733a705 commit 13f65ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/auto_fix.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class AutoFix {
return [
if (_pubRemoveNames.isNotEmpty) 'dart pub remove ' + _pubRemoveNames.join(' '),
...mergedPubAdds.map((e) => e.compile()),
].join(' && ');
].join('; ');
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/dependency_validator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ Future<void> run({required bool shouldAutoFix}) async {

if (shouldAutoFix && autoFixCommand.isNotEmpty) {
logger.info('Start autofix...');
final process = await Process.start('/bin/sh', ['-euxc', autoFixCommand]);
final process = await Process.start('/bin/sh', ['-xc', autoFixCommand]);
process.stdout.pipe(stdout);
process.stderr.pipe(stderr);
final processExitCode = await process.exitCode;
Expand Down

0 comments on commit 13f65ee

Please sign in to comment.