Correct Monero build script

This commit is contained in:
Luke Parker 2022-08-21 06:48:59 -04:00
parent 603a3f8c9f
commit 8af3a9ea51
No known key found for this signature in database
GPG key ID: F9F1386DB1E119B6

View file

@ -1,7 +1,7 @@
use std::{
io::Write,
path::Path,
fs::{File, remove_file},
fs::{File, DirBuilder, remove_file},
};
use dalek_ff_group::EdwardsPoint;
@ -33,6 +33,7 @@ fn generators(prefix: &'static str, path: &str) {
let mut H_str = "".to_string();
serialize(&mut H_str, &generators.H);
DirBuilder::new().recursive(true).create(".generators").unwrap();
let path = Path::new(".generators").join(path);
let _ = remove_file(&path);
File::create(&path)