forked from AbleOS/ableos
REPBUILD: Fix disk.img generation
This commit is contained in:
parent
06868b516f
commit
e8d854a171
|
@ -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") => {
|
||||
|
|
Loading…
Reference in a new issue