use std::{env::current_dir, fs, process::Command}; fn main() { if !fs::exists(".cursors.min").unwrap() { Command::new("/bin/bash") .arg("./contrib/gen-meta.sh") .current_dir(current_dir().unwrap().to_str().unwrap()) .output() .expect("Failed to execute command"); } }