1
0
Fork 0
forked from AbleOS/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();
args.next();
let disk_meta = fs::metadata("target/disk.img").unwrap();
let config_meta = fs::metadata("system.toml").unwrap();
// let disk_meta = fs::metadata("target/disk.img").unwrap();
// let config_meta = fs::metadata("system.toml").unwrap();
if disk_meta.modified().unwrap() < config_meta.modified().unwrap() {
// TODO: work on adding in system.toml support
// TODO: rebuild the disk
}
// if disk_meta.modified().unwrap() < config_meta.modified().unwrap() {
// // TODO: work on adding in system.toml support
// // TODO: rebuild the disk
// }
match args.next().as_deref() {
Some("build" | "b") => {