Permalink
Browse files

fix: SampleGenerator sometimes deleted pubspec.yaml (was not sync)

  • Loading branch information...
MikeMitterer committed Dec 4, 2015
1 parent eef901d commit aac525969bfb7799a65ed0e1260a9c1eefdcd1d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/src/grinder/src/SampleGenerator.dart
@@ -279,7 +279,7 @@ class SampleGenerator {
}
if(targetYaml.existsSync()) {
targetYaml.delete();
targetYaml.deleteSync();
}
final String contents = srcYaml.readAsStringSync().replaceAll("{{samplename}}",sample.name.replaceAll("-","_"));
targetYaml.writeAsStringSync(contents);

0 comments on commit aac5259

Please sign in to comment.