fix: only convert if it hasnt already been converted

This commit is contained in:
silver 2025-06-07 23:02:16 +01:00
parent 537fdfd40c
commit acdfe4b423
Signed by untrusted user: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -239,10 +239,13 @@ fn get_logos(config: &Config, config_toml: &ConfigToml) -> Vec<LogoData> {
path_new.push(filename); path_new.push(filename);
// check if exists // check if exists
match r.render(&path_local, &args) { if !path_new.exists() {
Ok(_) => log::info!("Successfully rendered all colors of {path_local:?}"), // convert if it hasnt been converted already
Err(e) => { match r.render(&path_local, &args) {
log::error!("Failed to render {path_local:?}: {}", e) Ok(_) => log::info!("Successfully rendered all colors of {path_local:?}"),
Err(e) => {
log::error!("Failed to render {path_local:?}: {}", e)
}
} }
} }
path = path_new; path = path_new;