|
@@ -211,7 +211,9 @@ fn generate_out_file(
|
|
|
options.mode(0o755);
|
|
|
}
|
|
|
|
|
|
- if path.file_name().unwrap() == OsStr::new("BuildTask.kt") || !path.exists() {
|
|
|
+ if path.file_name().unwrap() == OsStr::new("BuildTask.kt") {
|
|
|
+ options.truncate(true).create(true).open(path).map(Some)
|
|
|
+ } else if !path.exists() {
|
|
|
options.create(true).open(path).map(Some)
|
|
|
} else {
|
|
|
Ok(None)
|