mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 16:32:18 +03:00
Avoid patching the file msdfgen_wasm.js
more than once. (#3560)
Adds a fix for a build issue where the `msdfgen_wasm.js` file gets patched multiple times, which breaks the build. [ci no changelog needed]
This commit is contained in:
parent
4ca2097488
commit
1b0312b446
@ -43,7 +43,10 @@ mod msdfgen_wasm {
|
||||
let mut open_options = fs::OpenOptions::new();
|
||||
open_options.append(true);
|
||||
let mut file = open_options.open(path).unwrap();
|
||||
file.write_all(PATCH_LINE.as_bytes()).unwrap();
|
||||
let file_content = fs::read_to_string(path).unwrap();
|
||||
if !file_content.ends_with(PATCH_LINE) {
|
||||
file.write_all(PATCH_LINE.as_bytes()).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user