1
0
Fork 0
forked from koniifer/ableos

REPBUILD: Fix disk.img generation

This commit is contained in:
able 2023-07-08 23:21:27 -05:00
parent 06868b516f
commit e8d854a171

View file

@ -11,13 +11,13 @@ fn main() -> Result<(), Error> {
let mut args = std::env::args(); let mut args = std::env::args();
args.next(); args.next();
let disk_meta = fs::metadata("target/disk.img").unwrap(); // let disk_meta = fs::metadata("target/disk.img").unwrap();
let config_meta = fs::metadata("system.toml").unwrap(); // let config_meta = fs::metadata("system.toml").unwrap();
if disk_meta.modified().unwrap() < config_meta.modified().unwrap() { // if disk_meta.modified().unwrap() < config_meta.modified().unwrap() {
// TODO: work on adding in system.toml support // // TODO: work on adding in system.toml support
// TODO: rebuild the disk // // TODO: rebuild the disk
} // }
match args.next().as_deref() { match args.next().as_deref() {
Some("build" | "b") => { Some("build" | "b") => {