Fix replace actions replacing with wrong file

This commit is contained in:
Leonard Steppy 2025-02-03 23:03:16 +01:00
parent 8618e563dc
commit a288bf58a5

View File

@ -359,7 +359,7 @@ fn main() -> Result<(), String> {
if !present_file_names.iter().any(|file| *file == file_name) {
vec![add_action] //file doesn't exist yet
} else {
vec![FileAction::new(&file_name, Action::Replace)
vec![FileAction::new(file, Action::Replace)
.expect("path points to file")]
}
}