fix init script

This commit is contained in:
Ward from fusion-voyager-3 2024-06-21 15:05:08 +03:00
parent 243db99683
commit 264a48c19d

View File

@ -382,7 +382,10 @@ fn get_kernel_branches() -> Vec<KernelBranch> {
};
println!("Download Complete!");
println!("Running {} init script.", &branch.name);
let _ = cmd!(&branch.init_script).run();
match cmd!("bash", "-c", &branch.init_script).run() {
Ok(t) => println!("{} init script successful.", &branch.name),
_ => println!("{} init script failed.", &branch.name),
};
kernel_branches_array.push(branch)
}
};