All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			
		
			
				
	
	
		
			11 lines
		
	
	
		
			243 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			243 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
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}");
 | 
						|
    }
 | 
						|
}
 |