Check if qemu-img is present before startup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-26 19:21:40 +02:00
parent ff372800bd
commit de33c7d521
5 changed files with 25 additions and 4 deletions

View File

@ -0,0 +1,10 @@
use std::path::Path;
/// Check the existence of a required program
pub fn check_program(name: &str, description: &str) {
let path = Path::new(name);
if !path.exists() {
panic!("{name} does not exist! {description}");
}
}