Skip to content

Commit 080f15e

Browse files
authored
Fix --fix --no-parent-folder edge case (#14)
1 parent c26ebaf commit 080f15e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/flutterflow_cli_base.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ Future _runFix({
236236
'"flutter pub get" failed with code ${pubGetResult.exitCode}, stderr:\n${pubGetResult.stderr}\n');
237237
return;
238238
}
239-
239+
final fixDirectory = unzipToParentFolder ? directory : '';
240240
final dartFixResult = await Process.run(
241241
'dart',
242-
['fix', '--apply', directory],
242+
['fix', '--apply', fixDirectory],
243243
workingDirectory: destinationPath,
244244
runInShell: true,
245245
stdoutEncoding: utf8,

0 commit comments

Comments
 (0)